定制 clean/registry 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

clean/registry

最新稳定版本:1.0.1

Composer 安装命令:

composer require clean/registry

包简介

Simple registry pattern implementation

关键字:

README 文档

README

Build Status Code Climate Test Coverage Issue Count

Basic implementation of registry pattern that implement a central storage for objects often used throughout the application.

Installation

via Composer:

"require": {
  "clean/registry": "*"
}

Example of Usage

$registry = new Registry()

$registry->set('var1', 1);

$var1 = $registry->get('var1');

if ($registry->has('var1')) {
    ...
}

or you can extend any class with ReigistryTrait to add registry methods to it

class MyClass {
	use \Clean\Registry\RegistryTrait;
}

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-06