glynnforrest/crutches
Composer 安装命令:
composer require glynnforrest/crutches
包简介
A PHP utility library
README 文档
README
A PHP utility library
Included classes:
- DotArray - Set and get values from complex array structures easily.
- ItemList - Manipulate a list of objects (arrays with numeric keys). Methods are inspired by functional concepts such as map, filter and take. All methods that operate on the list return a new instance, leaving the original list unchanged.
- MutableItemList - The same as ItemList, except all methods modify the object instead of returning a new instance.
- Bitmask - A series of flags used to represent a group of properties (e.g. user permissions).
- NamedBitmask - An extension of Bitmask that abstracts numeric flags away from the user, instead referring to named flags.
- Roman - Convert integers to roman numerals and back again.
See the docs/ directory for detailed usage on each.
Installation
Crutches is installed via Composer. To add it to your project, simply add it to your composer.json file:
{
"require": {
"glynnforrest/crutches": "0.4.*"
}
}
And run composer to update your dependencies:
curl -s http://getcomposer.org/installer | php
php composer.phar update
License
MIT
统计信息
- 总下载量: 5.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-06-16