Registry / utility / phpoption-phpoption

phpoption-phpoption

JSON →
library1.9.5phppackagistunverified

Provides an Option type for PHP, allowing safe handling of nullable values.

composer require phpoption/phpoption
INSTALL
IMPORT
SIG · PHPOPTION-PHPOPTIO
P
phpoption-phpoption
utilityphpv1.9.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Option
use PhpOption\Option;

Create an Option from a value and retrieve it with a fallback.

use PhpOption\Option; $option = Option::fromValue('hello'); echo $option->getOrElse('default');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.9.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
phpoption-phpoption — pip install phpoption-phpoption · libregistry