PHPackages                             kilbiller/fphp - 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. kilbiller/fphp

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

kilbiller/fphp
==============

A set of auto-curried immutable data-last functions for PHP. Inspired by lodash/fp.

v1.0.3(8y ago)37.0k↑55.6%12MITPHPPHP &gt;=7.0

Since Jan 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/kilbiller/fphp)[ Packagist](https://packagist.org/packages/kilbiller/fphp)[ RSS](/packages/kilbiller-fphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (16)Used By (2)

fphp
====

[](#fphp)

[![CircleCI](https://camo.githubusercontent.com/3193e353d2d782693b501eb1cca077af46f912e5bf86924cb870d148e24a1f32/68747470733a2f2f636972636c6563692e636f6d2f67682f6b696c62696c6c65722f667068702e7376673f7374796c653d736869656c6426636972636c652d746f6b656e3d61656662376435396235313265386561393862356532346639333166383461613430663466303833)](https://circleci.com/gh/kilbiller/fphp)[![codecov](https://camo.githubusercontent.com/1f1f8bea18d77f955b69a413fc2a35c8c78862acddd465a48b7879f0602aa2c6/68747470733a2f2f636f6465636f762e696f2f67682f6b696c62696c6c65722f667068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/kilbiller/fphp)

A set of auto-curried immutable data-last functions for PHP. Inspired by lodash/fp.

Requires php &gt;= 7.0

Why use this ?
--------------

[](#why-use-this-)

- Functions are curried and take data as their last argument so you can easily compose them.
- Enables you to do [point-free programming.](https://en.wikipedia.org/wiki/Tacit_programming)
- All functions are immutable and have similar interfaces: iteratee-first, data-last with the rest of the parameters in between.

How to install
--------------

[](#how-to-install)

`composer require kilbiller/fphp`

Pro tips
--------

[](#pro-tips)

- Functions with an arity of one are also curried so you can avoid using a callable to compose them:

    `flow(flatten())([1, [2, 3]]) ==> [1, 2, 3]`

Tests
-----

[](#tests)

To run the tests simply do `composer run test`. You can also check code coverage by running `composer run test:coverage`.

Functions
---------

[](#functions)

- Collections
    - join
    - filter
    - reject
    - map
    - reduce
    - flatten
    - flatMap
    - every
    - none
    - find
    - zip
    - reverse
    - some
    - first
    - last
    - uniq
    - uniqWith
    - prop
- Function composition
    - flow
    - compose
- Currying
    - curry
    - curry1
    - curry2
    - curry3
    - curryN
- Logic
    - not
- Functions
    - negate
    - flip
- Extras
    - identity
    - concat

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~20 days

Recently: every ~9 days

Total

15

Last Release

3126d ago

Major Versions

v0.0.11 → v1.0.02017-09-20

PHP version history (2 changes)v0.0.1PHP &gt;=7.1

v0.0.2PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3019848?v=4)[Rémy Peru](/maintainers/kilbiller)[@kilbiller](https://github.com/kilbiller)

---

Top Contributors

[![kilbiller](https://avatars.githubusercontent.com/u/3019848?v=4)](https://github.com/kilbiller "kilbiller (44 commits)")[![tefricker](https://avatars.githubusercontent.com/u/37156504?v=4)](https://github.com/tefricker "tefricker (1 commits)")

---

Tags

compositioncurriedfunctionalimmutablelodashphp

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kilbiller-fphp/health.svg)

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

###  Alternatives

[marcj/topsort

High-Performance TopSort/Dependency resolving algorithm

24815.6M50](/packages/marcj-topsort)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)

PHPackages © 2026

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