lasso3000 / enumerable
Inspired by ruby's Enumerable module, this library allows you to create enumerables in PHP.
Requires
None
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-13 07:28:15 UTC
README
lasso3000/enumerable
Inspired by ruby's Enumerable module, this library allows you to create enumerables in PHP. It is similar in function to Knapsack, but tries to stay a bit closer to ruby in naming and spirit.
How to use this library in your own project
composer require lasso3000/enumerable
Code samples
Please have a look at the wiki.
How to fork/work with this library
Clone the repository
git clone https://github.com/lasso/Enumerable.php.git
Install dependencies
composer install
Run tests
vendor/bin/phpunit --bootstrap vendor/autoload.php tests
Run tests with coverage (XDebug must be installed)
vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-html=coverage --whitelist=src tests
Generate docs (will be placed in the phpdoc directory)
vendor/bin/phpdoc -d src/ -t phpdoc --template="responsive-twig"