PHPackages                             yshnb/php-monadic - 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. yshnb/php-monadic

ActiveLibrary

yshnb/php-monadic
=================

Monadic type programming in PHP

212PHP

Since Jun 22Pushed 10y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

php-monadic
===========

[](#php-monadic)

library for monad pattern in PHP.

type
----

[](#type)

this library implements below type (class)

- Identity
- Maybe
- Either
- ListLike(List)

Usage
-----

[](#usage)

### Install

[](#install)

you can install from [packagist.org](https://packagist.org/).

```
composer require yshnb/php-monadic:dev-master

```

Examples
--------

[](#examples)

### Identity

[](#identity)

Identity is a monad type, which simply wrap any value.

```
