PHPackages                             gertvdb/monad - 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. gertvdb/monad

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

gertvdb/monad
=============

Utilities to help ease use of monads in Php

2.1.30(1mo ago)0662[2 PRs](https://github.com/gertvdb/Monad/pulls)LGPL-3.0-or-laterPHPPHP ~8.3CI failing

Since Sep 9Pushed 1mo agoCompare

[ Source](https://github.com/gertvdb/Monad)[ Packagist](https://packagist.org/packages/gertvdb/monad)[ Docs](https://github.com/gertvdb/Monad)[ RSS](/packages/gertvdb-monad/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (39)Used By (0)

Monad
=====

[](#monad)

[![Build](https://github.com/gertvdb/Monad/actions/workflows/quality_assurance.yaml/badge.svg)](https://github.com/gertvdb/Monad/actions/workflows/quality_assurance.yaml/badge.svg)[![Tests](https://github.com/gertvdb/Monad/raw/main/badge-coverage.svg)](https://github.com/gertvdb/Monad/blob/main/badge-coverage.svg)[![Software License](https://camo.githubusercontent.com/c7ac37193c76a18cfbd9376fa02f6c3d160b11b4f6eda387e6046b0d4e373d17/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c76332d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Utilities to help ease use of monads in Php.

Install
-------

[](#install)

Then run the following command

```
$ composer require gertvdb/monad
```

Dependencies
------------

[](#dependencies)

When this package requires a new dependency make sure to install it through the docker container. That way we can make sure the dependency is never out of sync with the php/composer version

Testing
-------

[](#testing)

```
$ composer test
```

Static analysis
---------------

[](#static-analysis)

```
$ composer phpstan
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email gertvandenbuijs at hotmail dot com instead of using the issue tracker.

License
-------

[](#license)

The Lesser GPL version 3 or later. Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance88

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.1% 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 ~5 days

Recently: every ~0 days

Total

36

Last Release

58d ago

Major Versions

1.0.3 → 2.0.02025-12-03

PHP version history (2 changes)1.0.0PHP ~8.1

1.0.3PHP ~8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6be5968aa5130827168e9c866ac371aa7649a4fbacd44b8aa3c97ccd6899158c?d=identicon)[gertvdb](/maintainers/gertvdb)

---

Top Contributors

[![gertvdb](https://avatars.githubusercontent.com/u/7106435?v=4)](https://github.com/gertvdb "gertvdb (74 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (15 commits)")

---

Tags

functionalmonad

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gertvdb-monad/health.svg)

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

###  Alternatives

[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)[qaribou/immutable.php

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

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

Functional utilities for PHP 8 and later

91429.8k11](/packages/crell-fp)[chippyash/monad

Functional programming Monad support

2828.1k8](/packages/chippyash-monad)

PHPackages © 2026

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