fun-php
1.2
functional programming utilities for PHP
|
API Documentation | On Github | Functional programming with PHP |
A practical functional library for PHP programmers.
F
that are very handy for maniuplating objects / arraysInstall the library using composer :
And then, import it in your files :
Everything's up and running, you can play with it !
Using fun-php should be as painless as possible : no weird syntax, no OOP syntax, just functions (everywhere) !
As with Ramda, all the functions are automatically curried, and data comes last so you can easely compose them. Also, placeholders are implemented ! It means that the followings are equivalent :
Please review the API documentation
To run the test suite, you'll need composer
to be installed.
Then, install the dependencies (phpunit) :
And run the test :