chemem/bingo-functional
A simple functional programming library.
Maintainers
Fund package maintenance!
Requires
- php: ^7 || ^8
Requires (Dev)
- ergebnis/composer-normalize: ^2
- friendsofphp/php-cs-fixer: ^3
- giorgiosironi/eris: ^0
- phpunit/phpunit: ^8 || ^9
Suggests
- ext-apcu: In-memory key-value PHP userland store
- ext-eio: An interface to the libeio library
- ext-mbstring: PHP extension for accurately determining byte-length of strings
- ext-readline: An interface to the GNU readline library
- chemem/bingo-functional-repl: A simple REPL for the bingo-functional library
Provides
None
Conflicts
None
Replaces
None
Apache-2.0 05c70e6bb4e821a87381ba6ed6bdeb6529bf6d48
- Lochemem Bruno Michael <lochbm.woop@gmail.com>
collectionshelpersfiltermapfunctionalunzipzipcurrymemoizecompositionpartialreducemaybePattern Matchingcomposefpfunctional programmingtuplesimmutabilityfunctoreitherpartial applicationmonadshigher-order functionsfoldlensIO monadReader monadWriter monadState monadreferential transparencybingoApplicativefantasy landimmutable listsunion typesfunctorsapplicativestransducersinput-outputfilterMfoldMlensesmonad lawsapplicative lawspersistent data structurespure functionseither monadmaybe monadapplicative functoridentity functorovertransduce
This package is auto-updated.
Last update: 2026-06-04 08:40:10 UTC
README
bingo-functional
👁 Join the chat at https://gitter.im/bingo-functional/Lobby
👁 StyleCI
👁 bingo-functional CI
👁 codecov
👁 Latest Stable Version
👁 License
👁 Total Downloads
👁 Monthly Downloads
👁 composer.lock
👁 Twitter
A simple functional programming library for PHP.
Requirement(s)
- PHP 7 or higher
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
Please check out the documentation for more knowledge on how to use this library.
Also, a changelog exists and can be used to track changes made to the project.
Dealing with problems
Endeavor to create an issue on GitHub when the need arises or send an email to lochbm@gmail.com
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.
Related Projects
-
bingo-functional-js A JavaScript port of this library
-
bingo-functional-repl A REPL for this library
