petrknap/optional
Optional brings Java 8-style Optional to PHP, making null handling explicit and safe with isPresent(), get(), orElse(), and ifPresent(). Create strictly typed optionals for bools, strings, arrays, objects, and custom types using built-in traits with full static analysis support.
None
|
Package
|
Constraint
|
|---|---|
| nunomaduro/phpinsights | ^2.11 |
| petrknap/shorts | ^3.3 |
| phpstan/phpstan | ^1.12 |
| phpunit/phpunit | ^10.5 |
| squizlabs/php_codesniffer | ^3.7 |
How can I help you explore Laravel packages today?