Skip to content
/ fp Public

Functional programming utilities for PHP 8.4+ featuring pipe, compose, and lazy evaluation

License

Notifications You must be signed in to change notification settings

faustbrian/fp

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads


This library contains functional utilities intended for use with PHP 8.4 and later. Its primary tool is the pipe() function, which takes a starting argument and then a series of callables to "pipe" that argument through. Most other functions are utilities that produce a closure that takes the return from a previous pipe() step as its only argument.

Requirements

Requires PHP 8.4+

Installation

composer require cline/fp

Documentation

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

About

Functional programming utilities for PHP 8.4+ featuring pipe, compose, and lazy evaluation

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages