cerbero/laravel-enum
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| frostiede/enum-bundle | 0.89 | 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 | — | — | — | |
| nasyrov/laravel-enums | 0.89 | 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 | |
| mad-web/laravel-enum | 0.89 | 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 | — | — | |
| lazerg/laravel-enum-pro | 0.89 | Laravel Enum Pro enhances PHP enums for Laravel with validation rules, Eloquent casts, labels, descriptions, and localization. Build select options and display human-friendly enum values in forms, APIs, and Blade views with less boilerplate. | 43 | — | 2 | — | 1 | 0.4 | — | — | — | |
| sourceboat/laravel-enumeration | 0.89 | A Laravel package for defining and using enumerations in PHP, with support for validation rules, model casting, and comparing enum values in a clean, type-safe way across your application. | 0 | 9 | — | 0 | — | 0.0 | — | — | — | |
| azimkordpour/power-enum | 0.89 | 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 | |
| greg0ire/enum | 0.88 | A lightweight PHP enumeration library that lets you define enum-like classes with constants, validate values, and access available constants. It provides a simple AbstractEnum base class for projects that need typed, reusable sets of values without heavy dependencies. | 45 | 47 | 4 | 2K | 2 | 0.7 | 23.9 | NOASSERTION | 3 years ago | |
| archtechx/enums | 0.88 | Modern PHP enum helpers: casting, validation, labels, and convenience methods for native enums. Add common patterns like options arrays, random values, and comparisons to make enums easier to use across Laravel apps and APIs. | 567 | 568 | 23 | 597K | 2 | 6.9 | 41.6 | MIT | 1 year ago | |
| foxbytehq/laravel-backed-enums | 0.88 | 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 | |
| innoge/laravel-enum-states | 0.88 | A state machine for Eloquent built on native PHP enums. Define transitions, defaults, and lifecycle actions on the enum itself, register fields with a single attribute, and keep your normal model casts. Invalid transitions throw; defaults apply automatically. | 5 | 5 | 1 | 3K | 0 | 20.1 | 44.0 | MIT | 5 days ago | |
| osama-98/laravel-enum-translatable | 0.88 | A Laravel package for adding translations to PHP enums. Define localized labels and descriptions for enum cases using Laravel’s translation system, making it easy to display human-readable enum values across multiple languages. | 55 | — | 2 | — | 0 | 16.8 | — | MIT | 2 months ago | |
| konekt/enum | 0.88 | Lightweight PHP enum base class (pre-PHP 8.1) for defining value-safe constants via abstract Enum subclasses. Simple instantiation, validation and utilities, with docs and optional Laravel Eloquent integration via konekt/enum-eloquent. | 21 | 21 | 2 | 105K | 0 | 0.2 | 50.8 | MIT | — | |
| roundly-consulting/enums-for-laravel | 0.87 | Enums for Laravel brings first-class PHP enum support to Laravel applications. Cast enum attributes in Eloquent models, validate enum input, and work with backed values across requests and APIs. It keeps code type-safe, readable, and easy to integrate without extra boilerplate. | 5 | 0 | 0 | 3K | 0 | 18.9 | 43.7 | MIT | 3 weeks ago | |
| elao/enum | 0.87 | Opinionated extensions for PHP 8.1+ native enums with readable labels, flag/bitmask enums, and extra values. Includes integrations for Symfony (Forms, HTTP Kernel arg resolver, Translation, VarDumper), Doctrine ORM/ODM, and Faker. | 327 | 327 | 29 | 46K | 15 | 25.0 | 37.3 | MIT | 6 months ago | |
| daverandom/enum | 0.87 | Lightweight PHP enum base class: extend a single abstract class and define members as constants. Includes static helpers to validate and resolve enum names and values. Useful for simple, shared enum functionality. | 0 | 0 | 0 | 1 | 0 | 0.3 | 4.2 | MIT | 8 years ago | |
| paillechat/php-enum | 0.87 | PHP 7+ enum library: define enums by extending Enum and declaring constants, then instantiate via static named calls (IssueType::ONE()). Instances are strict-equal singletons, work with in_array/type hints, and can convert to/from names. | 16 | 17 | 3 | 847 | 0 | 2.0 | 23.6 | MIT | 8 years ago | |
| fervo/enum-bundle | 0.87 | fervo/enum-bundle provides practical utilities for working with PHP enums in Laravel applications, including helpers for enum-backed model attributes, validation, and common conversions so enum values stay type-safe and easy to use throughout your codebase. | 11 | 11 | 9 | 1K | 3 | 1.2 | 28.6 | — | 4 years ago | |
| heymoon/doctrine-psql-enum | 0.87 | A Doctrine DBAL type for PostgreSQL enums, making it easy to define and use native enum columns in Laravel/PHP applications. Provides seamless mapping and schema integration for cleaner, type-safe database models. | 26 | 26 | 5 | 2K | 4 | 21.3 | 30.5 | MIT | 1 week ago | |
| adrenalinkin/enum-mapper | 0.87 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| marc-mabe/php-enum | 0.86 | 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 |
How can I help you explore Laravel packages today?