Library can be installed into any PHP application:
$ composer require phpfn/phpfn
In order to access library make sure to include vendor/autoload.php
in your file.
<?php
require __DIR__ . '/vendor/autoload.php';
This package includes
phpfn/curry
is an implementation of currying and partial application.phpfn/immutable
is a little helper to ensure object immutability.phpfn/pipe
for the ability to use a sequence of functions as a chain.phpfn/placeholder
is a placeholder (looks like that:_
) symbol implementation.phpfn/symbol
for the ability to create unique identifiers within the system.