Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Optional Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v4.0.0-rc1

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.5.2...v4.0.0-rc1

v3.5.2

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.5.1...v3.5.2

v3.5.1

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.5.0...v3.5.1

v3.5.0
v3.4.1

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.4.0...v3.4.1

v3.4.0
v3.2.0

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.1.0...v3.2.0

v3.1.0

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v3.0.0...v3.1.0

v3.0.0

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v2.1.2...v3.0.0

v2.0.1

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v2.0.0...v2.0.1

v2.0.0
v1.9.1

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v1.9.0...v1.9.1

v1.7.0
v1.4.2

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v1.4.1...v1.4.2

v1.4.1
v1.4.0

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v1.3.0...v1.4.0

v1.3.0
v1.1.0

What's Changed

Full Changelog: https://github.com/petrknap/php-optional/compare/v1.0.0...v1.1.0

v1.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/petrknap/php-optional/commits/v1.0.0

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style