somnambulist/enumeration
Strongly-typed enumeration value objects for PHP and Laravel. Define constants once and get validation rules, Eloquent casting, instance comparison, and attribute access, plus helpers for safe construction. Ideal for modelling fixed sets such as statuses, types, and roles.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cerbero/laravel-enum | 0.87 | Cerbero Laravel Enum adds type-safe enum classes to Laravel, with validation rules, model casting, and helper methods for labels and values. A clean way to replace scattered constants with organized, reusable enum objects. | 189 | 190 | 19 | 3K | 0 | 1.5 | 16.2 | MIT | — | |
| frostiede/enum-bundle | 0.85 | A Symfony bundle that simplifies working with PHP enums, providing integration helpers and utilities to use enum types more cleanly across your application. Ideal for projects adopting PHP 8.1+ enums with Symfony. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| azimkordpour/power-enum | 0.85 | Power Enum enhances native PHP enums for Laravel with convenient helpers for labels, validation rules, Eloquent casts, and value comparisons, making status and type fields safer, more consistent, and easier to use across your application. | 41 | 41 | 0 | 2K | 0 | 0.2 | 22.3 | MIT | 1 year ago | |
| datomatic/laravel-enum-helper | 0.85 | Laravel Enum Helper adds handy methods to PHP enums: flag support, attribute casting, validation rules, labels, translations, select arrays, and comparison helpers, making it easy to use backed enums cleanly across your Laravel models, forms, and requests. | 35 | — | 4 | — | 0 | 7.9 | — | MIT | 7 months ago |
|
| quantumtecnology/enum-basics-extension | 0.85 | An extension for the enum-basics package that adds extra helpers and utilities for PHP and Laravel enums. It simplifies common enum tasks such as value lookup, labeling, comparison, and conversion, giving you a clean, consistent API for everyday enum handling. | 1 | 1 | 0 | 743 | 0 | 0.0 | 35.5 | MIT | — | |
| yokai/enum-bundle | 0.85 | Yokai Enum Bundle adds practical PHP 8.1 enum support: register enum types, expose choices in forms, validate values, and convert between enums, scalars, and database values through configurable services. | 12 | 13 | 5 | 853 | 0 | 0.1 | 17.8 | MIT | 1 year ago | |
| dive-be/php-enum-utils | 0.85 | Utilities for PHP 8.1+ enums in Laravel: convert enum cases to arrays, values, options, and labels for forms and APIs, compare and inspect cases, and cut boilerplate with a small, dependency-free helper set that makes working with native enums painless in everyday application code. | 31 | — | 0 | — | 0 | 4.6 | — | MIT | 9 months ago |
|
| marc-mabe/php-enum | 0.85 | Native PHP enum implementation via an abstract base class. Extend it to define enumerations from public constants (supports scalars, null, and arrays), create and compare enum instances, and keep a strict set of named values for safer domain modeling. | 498 | 506 | 35 | 8M | 2 | 12.9 | 55.1 | BSD-3-Clause | 1 year ago | |
| cerbero/enum | 0.85 | A powerful enum implementation for Laravel that turns class constants into rich, type-safe enum objects. It adds validation rules, localization, Eloquent casting, comparisons, and Blade helpers while keeping enums simple and extensible. | 362 | 360 | 3 | 8K | 0 | 1.9 | 19.2 | MIT | — | |
| eloquent/enumeration | 0.85 | Eloquent Enumeration brings typed enum support to Laravel’s Eloquent models. Define reusable enums, cast attributes to enum instances, and keep status or type fields type-safe and expressive without leaving familiar Eloquent conventions. | 146 | — | 12 | — | 3 | 0.9 | 0.5 | MIT | 7 years ago |
|
| nasyrov/laravel-enums | 0.85 | Laravel Enums adds first-class enumeration support: define typed enum classes, then use them as Eloquent casts, validation rules, and translatable labels. Helpers for values, options, and comparisons make model attributes and form choices safer and more expressive. | 32 | — | 9 | — | 0 | 0.7 | — | MIT | 5 years ago | |
| vicgutt/php-enhanced-enum | 0.85 | A PHP package that enhances native enums with extra helpers and conveniences, making them easier to work with in Laravel and plain PHP projects alike. | 0 | 0 | 0 | 146 | 0 | 0.0 | 29.9 | MIT | 4 years ago | |
| mad-web/laravel-enum | 0.84 | A Laravel package that provides a lightweight enum implementation with model attribute casting, validation rules, translations, and helper methods for working with predefined values throughout your application. | 0 | 110 | — | 6 | — | 0.0 | 11.7 | — | — | |
| somnambulist/collection | 0.84 | A PHP/Laravel collection package that extends the standard Collection with type-safe wrappers, extra helper methods, and immutable-style operations for cleaner, more predictable data manipulation. | 11 | 11 | 2 | 3K | 0 | 0.1 | 32.4 | MIT | 2 years ago | |
| foxbytehq/laravel-backed-enums | 0.84 | A Laravel package that adds handy helpers to PHP backed enums, including human-readable labels, validation rules, select options, comparisons, and Eloquent-friendly utilities so you can use enums confidently across forms, requests, and models. | 44 | 45 | 4 | 348 | 1 | 9.3 | 14.4 | MIT | 7 months ago | |
| sebastian/object-enumerator | 0.84 | Traverses arrays and object graphs to enumerate every referenced object, including nested structures and circular references. A small utility from Sebastian Bergmann's PHP testing stack, commonly pulled in by PHPUnit to walk object graphs safely. | 6,527 | 6,530 | 9 | 24M | 1 | 42.3 | 56.2 | BSD-3-Clause | 2 months ago | |
| markbaker/enumhelper | 0.84 | A lightweight PHP helper for native enums, offering convenient methods for listing cases, names and values and converting enums into arrays or options for forms, validation and select inputs. | 28 | 28 | 1 | 835 | 0 | 0.2 | 20.4 | MIT | 4 years ago | |
| somnambulist/domain | 0.84 | Domain-driven design building blocks for Laravel and PHP: UUIDs, value objects, entities, aggregates, domain events, commands and repositories. A clean, framework-friendly foundation for modelling business logic with clear boundaries. | 26 | 26 | 2 | 130 | 0 | 0.2 | 10.6 | MIT | — | |
| chadsikorra/php-simple-enum | 0.84 | A lightweight, dependency-free enum implementation for PHP. Define constant sets with helper methods for validation, value lookup, and comparison, useful where native enums aren't available. Simple API that's easy to drop into existing projects. | 11 | — | 0 | — | 0 | 0.1 | — | MIT | — |
|
| somnambulist/attribute-model | 0.84 | A Laravel package for declarative model attributes: define typed, castable fields on Eloquent models using PHP attributes, with generated accessors, mutators, and validation—so you can add structured metadata without extra tables or boilerplate. | 0 | 0 | 0 | 124 | 0 | 0.0 | 29.0 | MIT | — |
How can I help you explore Laravel packages today?