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

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

nostriphant/functional
======================

Functional helper classes for nostriphant projects

2.6.4(3w ago)01.1k5MITPHPPHP ^8.4CI passing

Since Nov 20Pushed 1w ago1 watchersCompare

[ Source](https://github.com/nostriphant/functional)[ Packagist](https://packagist.org/packages/nostriphant/functional)[ RSS](/packages/nostriphant-functional/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (2)Versions (23)Used By (5)

functional-alternate
====================

[](#functional-alternate)

Functional helper classes for nostriphant projects

Usage
-----

[](#usage)

```
use nostriphant\Functional\Alternate;

$state = Alternate::state1('Hello World!');

$evaluate = $state(state1: function (string $message) {
    yield $message;
});

foreach ($evaluate as $message) {
    expect($message)->toBe('Hello World!');
}

```

### FunctionList

[](#functionlist)

```
use nostriphant\Functional\FunctionList;

$list = new FunctionList(fn($x) => $x * 2);
$list2 = $list->bind(fn($x) => $x + 3);
expect($list2(2))->toBe([4, 5]);

```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

22

Last Release

21d ago

Major Versions

1.1 → 2.0.02025-10-15

PHP version history (2 changes)1.0PHP ^8.3

2.5.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/448159?v=4)[Rik Meijer](/maintainers/rikmeijer)[@rikmeijer](https://github.com/rikmeijer)

---

Top Contributors

[![rikmeijer](https://avatars.githubusercontent.com/u/448159?v=4)](https://github.com/rikmeijer "rikmeijer (43 commits)")

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[edofre/yii2-fullcalendar

Yii2 widget for fullcalendar

2762.7k1](/packages/edofre-yii2-fullcalendar)

PHPackages © 2026

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