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.
|
Person
|
Packages
|
Contributions
|
Followers
|
|
|---|---|---|---|---|
|
Petr Knap
@petrknap |
4 | 306 | 10 |
View on GitHub
|
How can I help you explore Laravel packages today?