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

marvin255/optional

A lightweight Optional value object for PHP and Laravel that wraps nullable values and eliminates scattered null checks. Chain map, filter, and orElse helpers for safer, more readable pipelines, keeping your code fluent and free of repetitive if-null branching.

Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
marvin255/value-object 0.81 A Laravel/PHP package for building immutable, self-validating value objects with typed properties and simple array/JSON conversion, helping keep domain data consistent and expressive. 0 0 0 3 0 8.7 9.0 MIT 7 months ago
View on GitHub
imanghafoori/laravel-nullable 0.79 — 151 151 10 16K 2 3.1 28.4 MIT 1 year ago
View on GitHub
petrknap/optional 0.79 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. 0 0 0 3K 0 29.1 57.3 LGPL-3.0 1 week ago
View on GitHub
michael-rubel/nullify 0.78 Nullify is a Laravel package that converts empty values to null, helping keep request and model data consistent and making validation and database storage more predictable. 16 16 0 30 0 0.4 6.1 MIT 2 years ago
View on GitHub
php-standard-library/option 0.78 Option type for PHP with explicit Some/None presence semantics, replacing nullable values so absence is handled intentionally instead of silently. Part of the PHP Standard Library. 1 1 0 113K 0 21.7 65.0 MIT 1 week ago
View on GitHub
phpoption/phpoption 0.77 The Option type for PHP: a lightweight library that makes nullable return values explicit with Some and None classes. It forces developers to handle both cases, reducing fatal errors from calling methods on null while enabling more concise APIs. 2,665 2,689 67 24M 0 38.5 62.3 Apache-2.0 2 months ago
View on GitHub
marvin255/value-object-bundle 0.77 A Symfony bundle for using immutable value objects with Doctrine ORM, offering base classes, type mappings, and integration helpers so domain values can be persisted and hydrated transparently. Helps keep models expressive and avoid primitive obsession. 0 0 0 2 0 12.1 7.3 MIT 5 months ago
View on GitHub
std-out/simple-data-objects 0.76 Lightweight, attribute-driven DTOs for PHP 8.4+ with zero runtime reflection and compiled per-class closures for fast hydration and serialization. Works standalone or in Laravel 12–13. 35 35 0 202 0 27.3 13.2 MIT 3 weeks ago
View on GitHub
dyrynda/laravel-nullable-fields 0.76 A Laravel trait for storing nullable model attributes as empty strings instead of NULL. Define your nullable fields, and the package transparently converts values on save and retrieval, making it ideal for legacy schemas or database columns that don't accept NULL. 102 104 11 9K 0 8.4 28.7 MIT 7 months ago
View on GitHub
fp4php/functional 0.75 fp4php/functional brings functional programming to PHP with immutable collections, pipelines, pattern matching, and composable helpers. It simplifies data transformation and reduces boilerplate while fitting naturally into Laravel and existing PHP codebases. 203 203 6 9K 0 1.2 22.9 MIT 1 year ago
View on GitHub
Context7
joomla/utilities 0.75 Joomla Utilities provides lightweight helper classes for common tasks, including ArrayHelper methods to cast arrays to integers, convert arrays to objects/strings, and extract arrays from objects—handy utilities for PHP apps and Joomla Framework projects. 3 4 11 18K 1 1.9 50.3 GPL-2.0 1 year ago
View on GitHub
eloquent/phony 0.75 — 193 196 7 2K 8 6.2 11.7 MIT 5 years ago
View on GitHub
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.
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
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log