axy/magic
Composer 安装命令:
composer require axy/magic
包简介
Work with magic fields
README 文档
README
Access to magic fields (PHP).
- The library does not require any dependencies (except composer packages).
- Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
- Install:
composer require axy/magic. - License: MIT.
Documentation
The library provides several features for creating and accessing magic properties.
Most of the features made in the form of Traits. So it can be implemented in classes at any level. And they can be combined with each other.
- ReadOnly - the read-only container
- ArrayMagic - access to fields as array elements
- Named - named objects
- LazyField - lazy fields
- LazyContainer - container with fixed set of lazy properties
- ArrayWrapper - wrapper over an array
- List of errors
The properties and methods defined by these Traits have the prefix magic.
统计信息
- 总下载量: 407
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-12-29