chemem/bingo-functional

A simple functional programming library.


Keywords
collections, helpers, filter, map, functional, unzip, zip, curry, memoize, composition, partial, reduce, maybe, Pattern Matching, compose, fp, functional programming, tuples, immutability, functor, either, partial application, monads, higher-order functions, fold, lens, IO monad, Reader monad, Writer monad, State monad, referential transparency, bingo, Applicative, fantasy land, immutable lists, union types, functors, applicatives, transducers, input-output, filterM, foldM, lenses, monad laws, applicative laws, persistent data structures, pure functions, either monad, maybe monad, applicative functor, identity functor, over, transduce, bingo-framework, either-monad, functional-php, functional-programming, immutable, io-monad, maybe-monad, php, php-library, php7, reader-monad, state-monad, writer-monad
License
Apache-2.0

Documentation

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

Buy Me A Coffee