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

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

jurasciix/functional
====================

1.0.0(3mo ago)00PHPPHP ^8

Since Mar 12Pushed 3mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Functional types
================

[](#functional-types)

This library introduces useful interfaces and implementations for functional programming.

For now, it includes the following interfaces:

- `ConsumerInterface`
- `BiConsumerInterface`
- `TriConsumerInterface`
- `SupplierInterface`
- `FunctionInterface`
- `BiFunctionInterface`
- `TriFunctionInterface`

> Fun fact: It fits perfectly with [awurth/functional](https://github.com/awurth/functional-php)

What is wrong with PHP closures?
--------------------------------

[](#what-is-wrong-with-php-closures)

The short answer is: **inconsistent syntax**. I am willing to trade brevity for more consistent and structured code. Explicit interfaces make the purpose of each closure clear and predictable.

Disadvantages
-------------

[](#disadvantages)

- You cannot pass or obtain variable references.
- It is harder to bind context variables.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance80

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b9c48a10049ebe3b1fb4f907c36f9c2cbaaafda66d57f19b4e1cef7f0652534?d=identicon)[JuraSciix](/maintainers/JuraSciix)

---

Top Contributors

[![JuraSciix](https://avatars.githubusercontent.com/u/53406677?v=4)](https://github.com/JuraSciix "JuraSciix (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nilportugues/php_backslasher

Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.

889.3k20](/packages/nilportugues-php-backslasher)

PHPackages © 2026

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