glynnforrest / crutches
A PHP utility library
Installs: 5 845
Dependents: 4
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.2.*
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