https://github.com/ace411/bingo-functional
A simple functional programming library for PHP
https://github.com/ace411/bingo-functional
bingo-framework either-monad fp functional functional-php functional-programming functors helpers immutability immutable io-monad maybe-monad monads php php-library php7 reader-monad state-monad writer-monad
Last synced: 6 days ago
JSON representation
A simple functional programming library for PHP
- Host: GitHub
- URL: https://github.com/ace411/bingo-functional
- Owner: ace411
- License: apache-2.0
- Created: 2017-09-03T12:06:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T15:08:54.000Z (6 months ago)
- Last Synced: 2025-02-08T13:08:23.994Z (13 days ago)
- Topics: bingo-framework, either-monad, fp, functional, functional-php, functional-programming, functors, helpers, immutability, immutable, io-monad, maybe-monad, monads, php, php-library, php7, reader-monad, state-monad, writer-monad
- Language: PHP
- Homepage: https://bingo-functional-docs.now.sh/
- Size: 2.28 MB
- Stars: 66
- Watchers: 11
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: changes.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![]()
bingo-functional
[](https://gitter.im/bingo-functional/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://github.styleci.io/repos/102261728?branch=master)

[](https://codecov.io/gh/ace411/bingo-functional)
[](https://packagist.org/packages/chemem/bingo-functional)
[](https://packagist.org/packages/chemem/bingo-functional)
[](https://packagist.org/packages/chemem/bingo-functional)
[](https://packagist.org/packages/chemem/bingo-functional)
[](https://packagist.org/packages/chemem/bingo-functional)
[](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)
- 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](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
Endeavor to create an issue on GitHub when the need arises or send an email to [email protected]
## 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**](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