lasso3000/enumerable

Inspired by ruby's Enumerable module, this library allows you to create enumerables in PHP.

dev-master 2019-03-14 15:29 UTC

README

Build Status      Code Climate      codecov      Latest docs

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"