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

Abandoned → [fp4php/functional](/?search=fp4php%2Ffunctional)Library[Utility &amp; Helpers](/categories/utility)

whsv26/functional
=================

PHP Functional Programming library

v6.0.1(1y ago)2019.0k↑1821.3%63MITPHPPHP ^8.1CI passing

Since May 16Pushed 1y ago9 watchersCompare

[ Source](https://github.com/fp4php/functional)[ Packagist](https://packagist.org/packages/whsv26/functional)[ RSS](/packages/whsv26-functional/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (57)Used By (3)

Functional PHP
==============

[](#functional-php)

PHP Functional Programming library. Monads and common use functions.

[![psalm level](https://camo.githubusercontent.com/4a738965902d42b1326566c72c6a5cc0f307adf5ebe1eb69107062c29808b757/68747470733a2f2f73686570686572642e6465762f6769746875622f7768737632362f66756e6374696f6e616c2f6c6576656c2e737667)](https://camo.githubusercontent.com/4a738965902d42b1326566c72c6a5cc0f307adf5ebe1eb69107062c29808b757/68747470733a2f2f73686570686572642e6465762f6769746875622f7768737632362f66756e6374696f6e616c2f6c6576656c2e737667)[![psalm type coverage](https://camo.githubusercontent.com/9fb267eb1c3aee7f179a27b0b08821a95501e289031d910cad2b6add9634a08c/68747470733a2f2f73686570686572642e6465762f6769746875622f7768737632362f66756e6374696f6e616c2f636f7665726167652e737667)](https://camo.githubusercontent.com/9fb267eb1c3aee7f179a27b0b08821a95501e289031d910cad2b6add9634a08c/68747470733a2f2f73686570686572642e6465762f6769746875622f7768737632362f66756e6374696f6e616c2f636f7665726167652e737667)[![phpunit coverage](https://camo.githubusercontent.com/1a782d47823e22f00d0087b2f363336492f58f28f23ffae3e39f887b0aeabedc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7768737632362f66756e6374696f6e616c2f62616467652e737667)](https://coveralls.io/github/whsv26/functional)

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

[](#documentation)

- ### [Collections](doc/Collections.md)

    [](#collections)
- ### [Streams](doc/Streams.md)

    [](#streams)
- ### [Monads](doc/Monads.md)

    [](#monads)
- ### [Functions](doc/Functions.md)

    [](#functions)
- ### [Combinators](doc/Combinators.md)

    [](#combinators)

Installation
------------

[](#installation)

### Composer

[](#composer)

Supported installation method is via [composer](https://getcomposer.org):

```
$ composer require fp4php/functional
```

### Psalm integration

[](#psalm-integration)

Please refer to the [fp4php/functional-psalm-plugin](https://github.com/fp4php/functional-psalm-plugin) repository.

Overview
--------

[](#overview)

Typesafe and concise.

Powerful combination: Collections + Option monad.

```
