定制 bluzphp/container 二次开发

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

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

bluzphp/container

最新稳定版本:1.2.0

Composer 安装命令:

composer require bluzphp/container

包简介

Container package

README 文档

README

Achievements

PHP >= 8.2+

Latest Stable Version

Build Status

Scrutinizer Code Quality

Total Downloads

License

Usage

Example of the Registry class:

namespace Bluz\Registry;

use Bluz\Container;

class Registry {
    use Container\Container;
    use Container\JsonSerialize;
    use Container\RegularAccess;
}

Methods

Public methods of the Container\Container:

  • setFromArray(array $data)
  • toArray()
  • resetArray()

Protected methods of the Container\Container:

  • doSetContainer(string $key, mixed $value) - set the value by the key
  • doGetContainer(string $key) – if the container has the key, then it returns the value, otherwise null
  • doContainsContainer(string $key) - check the container for the key
  • doDeleteContainer(string $key) - remove the value by the key

Methods of the Container\ArrayAccess (implementation of the interface ArrayAccess):

  • offsetSet($offset, $value)
  • offsetExists($offset)
  • offsetUnset($offset)
  • offsetGet($offset)

Methods of the Container\MagicAccess:

  • __set($key, $value)
  • __get($key)
  • __isset($key)
  • __unset($key)

Methods of the Container\RegularAccess:

  • set($key, $value)
  • get($key)
  • has($key)
  • remove($key)

Methods of the Container\JsonSerialize

  • jsonSerialize() - implementation of the interface JsonSerializable

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-17