PHPackages                             zweifisch/f - 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. zweifisch/f

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

zweifisch/f
===========

building blocks for functional php

v0.0.1(13y ago)120MITPHPPHP &gt;=5.4.0

Since May 19Pushed 13y ago1 watchersCompare

[ Source](https://github.com/zweifisch/f)[ Packagist](https://packagist.org/packages/zweifisch/f)[ Docs](https://github.com/zweifisch/f)[ RSS](/packages/zweifisch-f/feed)WikiDiscussions master Synced 4w ago

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

f [![Build Status](https://camo.githubusercontent.com/62f3a2bd37f05cd51e3c9f327dc63081ecb487f9087b2df03bcc2ea88aa0ccf4/68747470733a2f2f7472617669732d63692e6f72672f7a77656966697363682f662e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/zweifisch/f)
==================================================================================================================================================================================================================================================================

[](#f-)

functional building blocks for php

synopsis
--------

[](#synopsis)

```
$f = \f\F::getInstance();

$f->map($f->comp($f->even,$f->inc), [1,2]);
```

available functions
-------------------

[](#available-functions)

- add
- apply
- comp
- complement
- concat
- dec
- div
- even
- every
- filter
- first
- get
- inc
- keys
- last
- map
- mul
- odd
- partial
- reduce
- rem
- some
- sub
- vals

tests
-----

[](#tests)

```
composer install --dev
vendor/bin/phpunit -c tests
```

benchmarks
----------

[](#benchmarks)

```
php benchmark/run.php
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4791d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdbb731edddfc89091983a03b73a05e286cbb966fcdb300758f157f327f0274f?d=identicon)[zf](/maintainers/zf)

---

Top Contributors

[![zweifisch](https://avatars.githubusercontent.com/u/447862?v=4)](https://github.com/zweifisch "zweifisch (13 commits)")

---

Tags

closurefunctional

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zweifisch-f/health.svg)

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

###  Alternatives

[lstrojny/functional-php

Functional primitives for PHP

2.0k7.5M51](/packages/lstrojny-functional-php)[nikic/iter

Iteration primitives using generators

1.1k6.2M53](/packages/nikic-iter)[lambdish/phunctional

λ PHP functional library

3642.1M24](/packages/lambdish-phunctional)[ihor/nspl

Non-standard PHP library (NSPL) - functional primitives toolbox and more

375369.1k](/packages/ihor-nspl)[qaribou/immutable.php

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

345147.4k](/packages/qaribou-immutablephp)[crell/fp

Functional utilities for PHP 8 and later

92490.8k11](/packages/crell-fp)

PHPackages © 2026

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