PHPackages                             jedibc/optional - 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. jedibc/optional

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

jedibc/optional
===============

PHP port of Java Optional&lt;T&gt;

1.0.0(10y ago)0392MITPHPPHP &gt;=5.6.0

Since Apr 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/JEDIBC/optional)[ Packagist](https://packagist.org/packages/jedibc/optional)[ RSS](/packages/jedibc-optional/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (2)Used By (2)

jedibc/optional
===============

[](#jedibcoptional)

[![Build Status](https://camo.githubusercontent.com/8ef212f7ba2540e978ca798dd4149e439b6a55a308d2a3e3d3d605d4d42568ce/68747470733a2f2f7472617669732d63692e6f72672f4a45444942432f6f7074696f6e616c2e706e67)](https://travis-ci.org/JEDIBC/optional)

PHP port of the Java `Optional`

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

[](#installation)

The recommended way to install the library is through [Composer](http://getcomposer.org/). Require the `jedibc/optional` package into your `composer.json` file:

```
{
    "require": {
        "jedibc/optional": "@stable"
    }
}
```

License
-------

[](#license)

jedibc/optional is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3680d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3600694cb928912bc7e66ec774e4154356920790a1afeea29369dba9181c2687?d=identicon)[JEDI\_BC](/maintainers/JEDI_BC)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jedibc-optional/health.svg)

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

###  Alternatives

[voku/phonetic-algorithms

Phonetic-Algorithms for fuzzy searching | PHP

1738.4k1](/packages/voku-phonetic-algorithms)[oriondevelops/filament-greeter

A Filament plugin to greet your users.

1214.3k1](/packages/oriondevelops-filament-greeter)

PHPackages © 2026

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