New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

cline/fp

Functional programming utilities for PHP 8.4+ featuring pipe, compose, and lazy evaluation
12,585 1
Install
composer require cline/fp
Latest Version:2.0.3
PHP:^8.5.0
Laravel:10 – 13
License:MIT
Last Updated:Mar 18, 2026
Links: GitHub  ·  Packagist
Maintainer: faustbrian

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.

Related Packages

valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

453,573 234
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

25,062 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

20,294 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

14,044 0
php
cline/sequencer

Sequential migration and operation orchestration for Laravel

12,978 0
php

Version History

Version Released PHP Laravel License
2.0.3 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.2 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.1 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.0.0 ^8.5.0 ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
1.4.1 ^8.5.0 ^10.0 || ^11.0 || ^12.0 MIT