A laravel wrapper for lstrojny/functional-php
zkosta/laravel-functional-php is a Laravel package for a laravel wrapper for lstrojny/functional-php.
It currently has 0 GitHub stars and 10 downloads on Packagist (latest version v1.0.1).
Install it with composer require zkosta/laravel-functional-php.
Discover more Laravel packages by zkosta
or browse all Laravel packages to compare alternatives.
Last updated
composer require zkosta/laravel-functional-php
This package supports the new package auto-discovery feature of Laravel 5.5, so if you are working on a Laravel 5.5 or greater, then your install is complete
In original packet (https://github.com/lstrojny/functional-php) each function placed its own file
under Functional namespace. So you need import every function you use.
use function Functional\map;
map(range(0, 100), function($v) {return $v + 1;});
i've hidden them with Laravel Facade pattern. So you'll able use as
HFunc::map(range(0, 100), function($v) {return $v + 1;});
where HFunc is new facade registered whilst installation.
Of course, it is possible to use functions by original way but then you do not need this package.