PHPackages                             metaxy/php-functional - 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. metaxy/php-functional

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

metaxy/php-functional
=====================

Functional primitives for PHP

21.6k1PHP

Since Jan 31Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

php-functional
==============

[](#php-functional)

Examples
--------

[](#examples)

### Map

[](#map)

How map looks like in Haskell:

```
mult2 = map((*) 2)
f = mult2 5
```

And how it looks like in php with php-functional:

```
$mult2 = map(function($x){return $x*2});
$f = $mult2(5);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9da84dea9fd41f6b70fa980abaf3739406924aa735c4205a11a747e338d53dd2?d=identicon)[metaxy](/maintainers/metaxy)

---

Top Contributors

[![metaxy](https://avatars.githubusercontent.com/u/82704?v=4)](https://github.com/metaxy "metaxy (16 commits)")

### Embed Badge

![Health badge](/badges/metaxy-php-functional/health.svg)

```
[![Health](https://phpackages.com/badges/metaxy-php-functional/health.svg)](https://phpackages.com/packages/metaxy-php-functional)
```

###  Alternatives

[sagautam5/local-states-nepal

PHP Package for data set of local states of Nepal

334.7k](/packages/sagautam5-local-states-nepal)

PHPackages © 2026

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