PHPackages                             soeur/phpoar - 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. soeur/phpoar

ActiveLibrary

soeur/phpoar
============

Imitate the option and result of rust.

11PHPCI failing

Since Apr 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/juzi5201314/phpoar)[ Packagist](https://packagist.org/packages/soeur/phpoar)[ RSS](/packages/soeur-phpoar/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpoar
======

[](#phpoar)

Imitate the option and result of rust.

Usage
-----

[](#usage)

```
function test1(\Phpoar\Option $opt) {}
function test2(\Phpoar\Result $result) {}

test1(\Phpoar\Some(1));
test1(\Phpoar\None());
test2(\Phpoar\Ok("ok"));
test2(\Phpoar\Err(new \Exception()));
```

Available
---------

[](#available)

#### Result

[](#result)

- unwrap
- is\_ok
- is\_err
- ok
- err
- map
- map\_or
- map\_or\_else
- map\_err
- and
- and\_then
- or
- or\_else
- unwrap\_or
- unwrap\_or\_else

#### Option

[](#option)

- unwrap
- is\_some
- is\_none
- map
- unwrap\_or
- unwrap\_or\_else

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/37ddb5de604851bee2c4e46154418c0168696a48ce049de413c4f463219ea3a2?d=identicon)[juzi5201314](/maintainers/juzi5201314)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/soeur-phpoar/health.svg)

```
[![Health](https://phpackages.com/badges/soeur-phpoar/health.svg)](https://phpackages.com/packages/soeur-phpoar)
```

PHPackages © 2026

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