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

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

ww0rm/php-optional
==================

Implements Java8 Optional in PHP7

234PHP

Since Feb 26Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

php-optional [![Build Status](https://camo.githubusercontent.com/b535b33811c94660077bae32f7df0510af74768b5b6416032f27b10e252a8b26/68747470733a2f2f7472617669732d63692e6f72672f777730726d2f7068702d6f7074696f6e616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ww0rm/php-optional)
==================================================================================================================================================================================================================================================================================================

[](#php-optional-)

Implements Java8 Optional in PHP7

##### Required PHP 7+

[](#required-php-7)

Install
=======

[](#install)

```
composer require ww0rm/php-optional

```

Documentation
=============

[](#documentation)

[View](https://github.com/ww0rm/php-optional/blob/master/docs/index.md)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance56

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity12

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/dd96f8cd8e3984129850d81c2bdce2bdde47a172b683fc1dad8af07819b360e1?d=identicon)[ww0rm](/maintainers/ww0rm)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel-frontend-presets/now-ui-dashboard

Laravel 11.x Front-end preset for now ui dashboard

22318.3k](/packages/laravel-frontend-presets-now-ui-dashboard)[artesaos/cidadesbr

537.7k](/packages/artesaos-cidadesbr)[twohill/silverstripe-homepagefordomain

Allows to designate a page anywhere in the tree as the homepage for a specific domain, overruling the usual homepage (which is identified by the 'home' URLSegment).

131.3k](/packages/twohill-silverstripe-homepagefordomain)

PHPackages © 2026

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