PHPackages                             cline/fp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cline/fp

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cline/fp
========

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

2.0.3(2mo ago)11.5k↓20.5%MITPHPPHP ^8.5.0CI failing

Since Dec 30Pushed 2mo agoCompare

[ Source](https://github.com/faustbrian/fp)[ Packagist](https://packagist.org/packages/cline/fp)[ RSS](/packages/cline-fp/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (9)Dependencies (12)Versions (15)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/fp/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/fp/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/e2f1978d1c87fc228ccb0ff8e2688114b7083694684f309eaf24e4bb7d78fe41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f66702e737667)](https://packagist.org/packages/cline/fp)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/c51cdd664c1814898f0ede52f26e99644c26723b09303c397738a06af9cbc072/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f66702e737667)](https://packagist.org/packages/cline/fp)

---

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
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

Installation
------------

[](#installation)

```
composer require cline/fp
```

Documentation
-------------

[](#documentation)

- **[Pipes and Composition](DOCS.md#doc-docs-pipes-and-composition)** - Introduction to `pipe()` and `compose()` functions
- **[Pipeable Functions](DOCS.md#doc-docs-pipeable-functions)** - Understanding partially applied functions
- **[String Functions](DOCS.md#doc-docs-string-functions)** - String manipulation utilities
- **[Object Functions](DOCS.md#doc-docs-object-functions)** - Object property and method utilities
- **[Array Functions](DOCS.md#doc-docs-array-functions)** - Comprehensive array operations (map, filter, reduce, etc.)
- **[Utility Traits](DOCS.md#doc-docs-utility-traits)** - `Evolvable` and `Newable` traits for functional object patterns
- **[Examples](DOCS.md#doc-docs-examples)** - Real-world usage examples and patterns

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/fp/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [Larry Garfield](https://github.com/Crell)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~3 days

Total

14

Last Release

61d ago

Major Versions

1.x-dev → 2.0.02026-03-04

PHP version history (2 changes)1.0.0PHP ^8.4.0

1.0.1PHP ^8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (11 commits)")

---

Tags

phppipefunctionalimmutablefunctional-programmingfpcomposearray-functionslazy-evaluationhigher-order-functions

### Embed Badge

![Health badge](/badges/cline-fp/health.svg)

```
[![Health](https://phpackages.com/badges/cline-fp/health.svg)](https://phpackages.com/packages/cline-fp)
```

###  Alternatives

[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

344146.0k](/packages/qaribou-immutablephp)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[mpetrovich/dash

A functional programming library for PHP. Inspired by Underscore, Lodash, and Ramda.

10428.9k1](/packages/mpetrovich-dash)[chemem/bingo-functional

A simple functional programming library.

716.9k3](/packages/chemem-bingo-functional)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
