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

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

chemem/bingo-functional
=======================

A simple functional programming library.

v2.4.0(1y ago)707.0k8[2 issues](https://github.com/ace411/bingo-functional/issues)3Apache-2.0PHPPHP ^7 || ^8CI failing

Since Sep 11Pushed 2mo ago10 watchersCompare

[ Source](https://github.com/ace411/bingo-functional)[ Packagist](https://packagist.org/packages/chemem/bingo-functional)[ Fund](https://tidelift.com/funding/github/packagist/chemem/bingo-functional)[ RSS](/packages/chemem-bingo-functional/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (32)Used By (3)

 [![](https://camo.githubusercontent.com/3f52375aea09f0de1bf4ea7f0e350e67ca6ff135ee5519e149fe45b4f76d06c4/68747470733a2f2f756361726563646e2e636f6d2f31393261313730642d613638382d346364342d393862652d6631653062333536623934642f62696e676f66756e6374696f6e616c6c6f676f2e706e67)](https://camo.githubusercontent.com/3f52375aea09f0de1bf4ea7f0e350e67ca6ff135ee5519e149fe45b4f76d06c4/68747470733a2f2f756361726563646e2e636f6d2f31393261313730642d613638382d346364342d393862652d6631653062333536623934642f62696e676f66756e6374696f6e616c6c6f676f2e706e67)

bingo-functional
================

[](#bingo-functional)

[![Join the chat at https://gitter.im/bingo-functional/Lobby](https://camo.githubusercontent.com/64f46b026530f63856317025ce981cd5f29c0e6773ba394e027eb1899fa783bc/68747470733a2f2f6261646765732e6769747465722e696d2f62696e676f2d66756e6374696f6e616c2f4c6f6262792e737667)](https://gitter.im/bingo-functional/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![StyleCI](https://camo.githubusercontent.com/4ce0aac2f626ae3a2a79b02e7883bc6d9a8cc03469ce9fe5ed7dfddc0e963116/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3130323236313732382f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/102261728?branch=master)[![bingo-functional CI](https://github.com/ace411/bingo-functional/workflows/bingo-functional%20CI/badge.svg)](https://github.com/ace411/bingo-functional/workflows/bingo-functional%20CI/badge.svg)[![codecov](https://camo.githubusercontent.com/e3b6f79310872987e99a21c18c37e22b45956e58108a9d9315af05f5d4580823/68747470733a2f2f636f6465636f762e696f2f67682f6163653431312f62696e676f2d66756e6374696f6e616c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ace411/bingo-functional)[![Latest Stable Version](https://camo.githubusercontent.com/58030f7f4b0dcbf93a51769ea75f54830880b9702b9c6bba4494da03af58f553/68747470733a2f2f706f7365722e707567782e6f72672f6368656d656d2f62696e676f2d66756e6374696f6e616c2f762f737461626c65)](https://packagist.org/packages/chemem/bingo-functional)[![License](https://camo.githubusercontent.com/44616cd139de6ddd56eaec109924e3e6cd5b780c3d7f5498dfbe45dabad768ce/68747470733a2f2f706f7365722e707567782e6f72672f6368656d656d2f62696e676f2d66756e6374696f6e616c2f6c6963656e7365)](https://packagist.org/packages/chemem/bingo-functional)[![Total Downloads](https://camo.githubusercontent.com/ed8fe2e1fecaa7f1fceddf6b29b3f4ab73b9357b04f4c0afea6ad9e03f097823/68747470733a2f2f706f7365722e707567782e6f72672f6368656d656d2f62696e676f2d66756e6374696f6e616c2f646f776e6c6f616473)](https://packagist.org/packages/chemem/bingo-functional)[![Monthly Downloads](https://camo.githubusercontent.com/9ffedbfd25173a83edc94a3042d909f3edda5bc6ee754557b8386f30324d6ab0/68747470733a2f2f706f7365722e707567782e6f72672f6368656d656d2f62696e676f2d66756e6374696f6e616c2f642f6d6f6e74686c79)](https://packagist.org/packages/chemem/bingo-functional)[![composer.lock](https://camo.githubusercontent.com/8d6ee352ef84426261ede7668ed35114e566b5f4efdf9afaa437cbcfb4631b17/68747470733a2f2f706f7365722e707567782e6f72672f6368656d656d2f62696e676f2d66756e6374696f6e616c2f636f6d706f7365726c6f636b)](https://packagist.org/packages/chemem/bingo-functional)[![Twitter](https://camo.githubusercontent.com/9d1f0b36cb0fe27300ee5d0ecd3a5eb79389e13ea8748a8a00fea08a549b540a/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f6163653431312f62696e676f2d66756e6374696f6e616c2e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Face411%2Fbingo-functional)

A simple functional programming library for PHP.

Requirement(s)
--------------

[](#requirements)

- PHP 7 or higher

Rationale
---------

[](#rationale)

PHP, a language not commonly associated with Functional Programming, does support the paradigm - to an extent. The language's Functional Programming affability though substantial is not the same as that of Haskell, OCaml, or F# - purely Functional languages. bingo-functional is an attempt at enhancing the usability of FP techniques - those that warrant the use of helper functions, applicatives, monads, pattern matching, and immutable lists.

Documentation
-------------

[](#documentation)

Please check out the [documentation](https://bingo-functional-docs.now.sh) for more knowledge on how to use this library.

Also, a [changelog](https://github.com/ace411/bingo-functional/blob/master/README.md) exists and can be used to track changes made to the project.

Dealing with problems
---------------------

[](#dealing-with-problems)

Endeavor to create an issue on GitHub when the need arises or send an email to

Functional Programming in PHP
-----------------------------

[](#functional-programming-in-php)

I published a book titled - Functional Programming in PHP - which is currently available on LeanPub. The bingo-functional library features extensively in the text as a tool whose potencies demonstrate usage of Functional Programming ideas in PHP. I advise that you purchase a copy for $9.99.

 [ ![](https://camo.githubusercontent.com/58500d8ba2d5f155c97445cf4b240b3ba18366de1a9694a42301665474b4c322/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f7469746c6570616765732e6c65616e7075622e636f6d2f66756e6374696f6e616c70726f6772616d6d696e67696e7068702f6865726f3f31353430323839333735) ](https://leanpub.com/functionalprogramminginphp)

Related Projects
----------------

[](#related-projects)

- [**bingo-functional-js**](https://github.com/ace411/bingo-functional-js) A JavaScript port of this library
- [**bingo-functional-repl**](https://github.com/ace411/bingo-functional-repl) A REPL for this library

[![Buy Me A Coffee](https://camo.githubusercontent.com/5505a36d937780d075baf214225c78c0cea3f1be90cd18062fb6b7b8e43b03bf/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f6c61746f2d77686974652e706e67)](https://www.buymeacoffee.com/agiroLoki)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance63

Regular maintenance activity

Popularity35

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~126 days

Recently: every ~293 days

Total

26

Last Release

60d ago

Major Versions

v1.x-dev → v2.0.02021-07-20

PHP version history (4 changes)v1.2.1PHP &gt;=7.0.0

v1.x-devPHP ~7 || ~8

v2.3.0PHP ^7 || ^8

v2.x-devPHP ^7.2 || ^8

### Community

Maintainers

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

---

Top Contributors

[![ace411](https://avatars.githubusercontent.com/u/11040337?v=4)](https://github.com/ace411 "ace411 (874 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (5 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![Desure85](https://avatars.githubusercontent.com/u/10466638?v=4)](https://github.com/Desure85 "Desure85 (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

bingo-frameworkeither-monadfpfunctionalfunctional-phpfunctional-programmingfunctorshelpersimmutabilityimmutableio-monadmaybe-monadmonadsphpphp-libraryphp7reader-monadstate-monadwriter-monadhelperszipfiltermapcollectionsfunctionaltuplesfunctional-programmingmaybecompositionunziplensespartialfpreducecurryPattern Matchingcomposehigher-order-functionseitherfunctorApplicativememoizetransducersimmutabilitypartial applicationmonadsfoldlensIO monadReader monadWriter monadState monadreferential transparencybingofantasy landimmutable listsunion typesfunctorsapplicativesinput-outputfilterMfoldMmonad lawsapplicative lawspersistent data structurespure functionseither monadmaybe monadapplicative functoridentity functorovertransduce

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[ihor/nspl

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

375369.6k](/packages/ihor-nspl)[dusank/knapsack

Collection library for PHP

5391.0M25](/packages/dusank-knapsack)[qaribou/immutable.php

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

345148.0k](/packages/qaribou-immutablephp)[marcosh/lamphpda

A collection of functional programming data structures

12214.5k4](/packages/marcosh-lamphpda)[daveross/functional-programming-utils

Functional Programming utilities for PHP 5.4+

225.2k](/packages/daveross-functional-programming-utils)[graze/data-structure

Data collections and containers

12295.9k10](/packages/graze-data-structure)

PHPackages © 2026

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