PHPackages                             jiripudil/phun - 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. jiripudil/phun

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

jiripudil/phun
==============

Modern functional collection utilities for PHP.

0.1.1(5mo ago)04.6k↓32%1MITPHPPHP ^8.2CI passing

Since Jan 9Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/jiripudil/phun)[ Packagist](https://packagist.org/packages/jiripudil/phun)[ GitHub Sponsors](https://github.com/jiripudil)[ RSS](/packages/jiripudil-phun/feed)WikiDiscussions main Synced 1mo ago

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

Phun
====

[](#phun)

[![Build Status](https://camo.githubusercontent.com/c6529f360048f3d22a3a72d288c13881a024de3f19397a0eedd98ddf653efd4f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a697269707564696c2f7068756e2f746573742e796d6c3f6272616e63683d6d61696e)](https://github.com/jiripudil/phun/actions/workflows/test.yml)[![Code Coverage](https://camo.githubusercontent.com/d28dfdc8aac6ea46e0190d144e8fd7592689b26da29fc00d3cbfd4c8f5d0d86d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6a697269707564696c2f7068756e2e737667)](https://codecov.io/gh/jiripudil/phun)[![latest version](https://camo.githubusercontent.com/92ed39faae4fd9f452723cdcb8063d4183c417b7ce7cdc979ff66356c9f26661/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a697269707564696c2f7068756e)](https://packagist.org/packages/jiripudil/phun)[![license](https://camo.githubusercontent.com/5e3d48c6aeb3491f62e528039951ac4489e6d93c7bc5416e6512314337449424/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a697269707564696c2f7068756e)](https://packagist.org/packages/jiripudil/phun)[![monthly downloads](https://camo.githubusercontent.com/015a0d25cc538e106d2e227e87cfe12931f5b8a33c4de1c908ba4dd53b99f277/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a697269707564696c2f7068756e)](https://packagist.org/packages/jiripudil/phun)[![downloads total](https://camo.githubusercontent.com/24cfbc04bb0a2d29b8f5cb82ee15abbb1c77246dd8a15fca7a182c53a0b438f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a697269707564696c2f7068756e)](https://packagist.org/packages/jiripudil/phun)

**Modern functional collection utilities for PHP.** Phun is a collection of functions that facilitate working with collections in PHP in a functional programming paradigm.

Phun provides a set of pure, strongly typed functions that work with collections. In many places, Phun assumes these collections are lists, but provides a `-WithKeys()` variant of each function where it makes sense.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance70

Regular maintenance activity

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

Every ~322 days

Total

2

Last Release

172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fa15809b1f4544a0696a3f8e0d9719014242c0f7de639b12919eaedfd213cfe?d=identicon)[jiripudil](/maintainers/jiripudil)

---

Top Contributors

[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (6 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jiripudil-phun/health.svg)

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

###  Alternatives

[vimeo/ablincoln

PHP library for designing online experiments

153301.5k](/packages/vimeo-ablincoln)

PHPackages © 2026

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