prewk/option
Lightweight Option type for PHP providing Some/None to avoid nulls. Adds map/flatMap/filter, unwrap with defaults, and safe chaining inspired by functional programming. Handy for Laravel and general PHP codebases where nullable values cause bugs.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| widmogrod/php-functional | 0.83 | Functional programming toolkit for PHP with immutable data structures, monads and typed abstractions. Includes Option/Either/Try, collections, pattern matching, and helpers for safer, composable code. Useful for DDD, CQRS and FP-style application architecture. | 369 | 374 | 32 | 203K | 7 | 9.0 | 39.8 | MIT | 1 year ago | |
| prewk/result | 0.83 | prewk/result brings Rust-like Result to PHP: explicit Ok/Err values for safer, more readable error handling without exceptions. Use map/flatMap, unwrap/unwrapOr, and chain operations to handle success and failure paths cleanly in functional style. | 121 | 121 | 13 | 19K | 0 | 1.9 | 32.9 | NOASSERTION | — | |
| php-standard-library/option | 0.80 | Option type for PHP with Some/None to replace nullable values with explicit presence semantics. Helps avoid null checks, clarifies intent, and models optional data safely. Part of PHP Standard Library; see docs and contributing links. | 1 | 1 | 0 | 46K | 0 | 18.4 | 63.5 | MIT | 2 months ago | |
| imanghafoori/laravel-nullable | 0.78 | — | 151 | 151 | 10 | 18K | 2 | 3.1 | 28.9 | MIT | 1 year ago | |
| lstrojny/functional-php | 0.78 | Functional PHP adds a rich set of functional programming helpers for PHP: map/filter/reduce, partial application, currying, composition, and collections utilities. Write cleaner, more declarative code without changing your framework or coding style. | 1,986 | 1,996 | 204 | 60K | 8 | 32.9 | 28.6 | MIT | 4 months ago | |
| digitalrevolution/utils | 0.77 | — | 1 | 1 | 8 | 2K | 1 | 24.5 | 48.2 | MIT | 3 months ago | |
| phpoption/phpoption | 0.77 | PhpOption brings an Option type to PHP, helping you avoid null-related errors by making “value or none” explicit. Use Some and None to model optional results, write safer APIs, and handle missing values deliberately with a clean, functional-style API. | 2,676 | 2,701 | 67 | 12M | 1 | 30.5 | 55.4 | Apache-2.0 | 7 months ago | |
| spatie/laravel-options | 0.77 | Generate unified select option lists in Laravel from enums, Eloquent models, states, and arrays. Spatie laravel-options converts sources to a consistent label/value structure, supports customization via config, and makes building dropdowns and filters faster and cleaner. | 252 | 254 | 9 | 14K | 0 | 20.0 | 27.4 | MIT | 3 months ago | |
| damian972/options-bundle | 0.77 | — | 1 | 1 | 0 | 0 | 0 | 0.6 | — | MIT | 4 years ago | |
| open-southeners/extended-php | 0.76 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 750 | 0 | 12.2 | 41.5 | MIT | 9 months ago | |
| michalkortas/laravel-options-creator | 0.76 | — | 2 | 2 | 0 | 0 | 0 | 3.9 | — | — | 5 years ago | |
| aurexengine/framework | 0.76 | Custom Chassis Framework (aurexengine/framework) is a Laravel/PHP framework package providing a chassis-style foundation for building applications and modules. Intended as a base layer for project structure, shared conventions, and core utilities. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| funeralzone/valueobjects | 0.76 | PHP 7.1+ value object toolkit for fundamental scalar-based VOs. Provides traits for strings/ints/etc, enums via constants, easy native serialization (fromNative/toNative), and encourages domain validation logic. Includes extension library for complex objects. | 66 | 66 | 7 | 23K | 2 | 6.3 | 34.9 | MIT | 5 years ago | |
| citizen63000/easy-api-core | 0.76 | — | 0 | 0 | 1 | 1 | 0 | 18.7 | 4.8 | MIT | 1 month ago | |
| luezoid/laravel-core | 0.75 | — | 11 | 11 | 9 | 26 | 2 | 1.6 | 6.9 | MIT | 3 years ago | |
| creavo/option-bundle | 0.75 | Symfony bundle to store and retrieve application options/settings via a service, Twig helper, or console commands. Persists values in Doctrine, supports typed options, optional eager loading, and PSR-16 simple cache for faster reads. | 0 | 0 | 0 | 0 | 0 | 5.1 | — | — | 2 years ago | |
| php-standard-library/foundation | 0.75 | A lightweight PHP foundation library offering common building blocks and utilities to bootstrap projects. Provides reusable helpers and core abstractions to reduce boilerplate and standardize patterns across apps and packages. | 1 | 1 | 0 | 48K | 0 | 17.7 | 63.1 | MIT | 2 months ago | |
| ringlesoft/laravel-selectable | 0.74 | Generate HTML tags from Laravel collections with a simple, flexible API. Choose label/value fields (strings or closures), set selected/disabled items, add classes/data attributes, group options, and export selectable arrays for AJAX/SPAs. | 5 | 6 | 0 | 0 | 0 | 21.9 | — | MIT | 2 weeks ago | |
| braunstetter/choosy-type | 0.73 | — | 0 | 0 | 0 | 0 | 0 | 1.8 | — | — | 3 years ago |
How can I help you explore Laravel packages today?