PHPackages                             php-standard-library/either - 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. php-standard-library/either

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-standard-library/either
===========================

General-purpose disjoint union type (Left/Right) for values with two possible types

6.1.1(1mo ago)00MITPHPPHP ~8.4.0 || ~8.5.0

Since Mar 17Pushed 1mo agoCompare

[ Source](https://github.com/php-standard-library/either)[ Packagist](https://packagist.org/packages/php-standard-library/either)[ Docs](https://php-standard-library.dev)[ RSS](/packages/php-standard-library-either/feed)WikiDiscussions next Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (9)Used By (0)

PHP Standard Library - Either
=============================

[](#php-standard-library---either)

General-purpose disjoint union type (Left/Right) for values with two possible types.

---

- [Documentation](https://php-standard-library.dev)
- [Contributing](https://github.com/php-standard-library/php-standard-library/blob/next/CONTRIBUTING.md)
- [Create Pull Request](https://github.com/php-standard-library/php-standard-library/pulls)
- [Report an Issue](https://github.com/php-standard-library/php-standard-library/issues)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (7 commits)")

---

Tags

monadeitherunion type

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-standard-library-either/health.svg)

```
[![Health](https://phpackages.com/badges/php-standard-library-either/health.svg)](https://phpackages.com/packages/php-standard-library-either)
```

###  Alternatives

[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[veewee/xml

XML without worries

1835.9M29](/packages/veewee-xml)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[veewee/reflecta

Unleash the Power of Optics in your code!

12261.1k3](/packages/veewee-reflecta)[marcosh/lamphpda

A collection of functional programming data structures

12313.5k4](/packages/marcosh-lamphpda)[chippyash/monad

Functional programming Monad support

2828.1k8](/packages/chippyash-monad)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
