PHPackages                             3lvir4/funfp - 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. 3lvir4/funfp

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

3lvir4/funfp
============

Some functional programming utilities.

v0.0.3(2y ago)0301MITPHP

Since Mar 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/3lvir4/funfp)[ Packagist](https://packagist.org/packages/3lvir4/funfp)[ RSS](/packages/3lvir4-funfp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/4f6bd7d107eb7df1f473cdf50a395985d4bd3795e8752cadb54ee1e7b428481d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f336c766972342f66756e6670)](https://packagist.org/packages/3lvir4/funfp)[![CI Status](https://github.com/3lvir4/funfp/workflows/CI/badge.svg)](https://github.com/3lvir4/funfp/actions)

FunFP - Functional Programming Utilities for PHP
================================================

[](#funfp---functional-programming-utilities-for-php)

FunFP is a package designed to provide some functional programming paradigms and utils within your PHP projects.

Key features include a **lot** of iterator *lazy* operations like map, filter, groupBy among others for fluid manipulation of iterable data, along with some helpers.

Additionally, there is option and result types for handling errors by value and nullable values in a more fluid manner when PHP doesn't provide a convenient way to do it already. There is also basic iterators for various string manipulations like iterating over bytes, characters, lines, words etc...

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

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require 3lvir4/funfp

```

If you only need this library during development, then you should add it as a development-time dependency:

```
composer require --dev 3lvir4/funfp

```

Wiki
----

[](#wiki)

*maybe*

Footnote
--------

[](#footnote)

The goal of this library is not to turn PHP into haskell or whatever. I tried to aim at specific functional tools according to some stuff I wish I needed in some of my PHP projects.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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 ~16 days

Total

3

Last Release

774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7461fb42213789628c5c055c756b0ea2d94ca6283a693974f9b2b39875f765e5?d=identicon)[3lvir4](/maintainers/3lvir4)

---

Top Contributors

[![3lvir4](https://avatars.githubusercontent.com/u/128508160?v=4)](https://github.com/3lvir4 "3lvir4 (81 commits)")

---

Tags

iteratorsoptionresultfunctional

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/3lvir4-funfp/health.svg)

```
[![Health](https://phpackages.com/badges/3lvir4-funfp/health.svg)](https://phpackages.com/packages/3lvir4-funfp)
```

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[graham-campbell/result-type

An Implementation Of The Result Type

548378.1M7](/packages/graham-campbell-result-type)[lstrojny/functional-php

Functional primitives for PHP

2.0k7.3M48](/packages/lstrojny-functional-php)[nikic/iter

Iteration primitives using generators

1.1k5.9M38](/packages/nikic-iter)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)

PHPackages © 2026

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