flextype-components/registry 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flextype-components/registry

Composer 安装命令:

composer require flextype-components/registry

包简介

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

README 文档

README

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

Version License Total downloads Quality Score


Installation

With Composer:

composer require flextype-components/registry

Usage

use Flextype\Component\Registry;

$registry = new Registry();

Methods

Method Description
set() Set a value in the registry.
get() Get item from the registry.
has() Determine if the registry has a value for the given name.
delete() Delete a value from the registry.
flush() Flush all values from the registry.
all() Get all values in the register.

Method: set()

Set a value in the registry.

Example:

$registry->set('movies.the-thin-red-line.title', 'The Thin Red Line');

Method: get()

Get item from the registry.

Example:

$registry->get('movies.the-thin-red-line.title');

Method: has()

Determine if the registry has a value for the given name.

Example:

if ($registry->has('movies.the-thin-red-line.title')) {
    // do something...
}

Method: delete()

Example:

$registry->delete('movies.the-thin-red-line.title');

Method: flush()

Flush all values from the registry.

Example:

$registry->flush();

Method: all()

Get all values in the register.

Example:

$dump = $registry->all();

License

The MIT License (MIT) Copyright (c) 2020 Sergey Romanenko

统计信息

  • 总下载量: 5.33k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固