foxbytehq/laravel-backed-enums
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| kongulov/interact-with-enum | 0.89 | Interact with PHP enums the Laravel way. This lightweight package adds convenient helpers for backed enums so you can compare, validate, and convert values cleanly in application code and validation rules, keeping enum handling expressive and simple. | 30 | — | 0 | — | 0 | 0.2 | — | MIT | 1 year ago |
|
| webfox/laravel-backed-enums | 0.89 | Adds Laravel-friendly helpers to PHP backed enums: generate labels and option lists, validate enum values, and use them cleanly in forms, APIs, and application logic. A lightweight way to make backed enums more practical in Laravel. | 44 | 45 | 4 | 404 | 1 | 9.2 | 15.2 | MIT | 7 months ago | |
| chadsikorra/php-simple-enum | 0.88 | 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 | — |
|
| lazerg/laravel-enum-pro | 0.88 | 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 | — | — | — | |
| 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 | |
| timeweb/phpstan-enum | 0.88 | PHPStan extension for PHP enums. Provides additional rules and type inference to catch invalid enum values and comparisons, improve static analysis around backed/unit enums, and surface enum-related bugs early in CI. | 44 | 44 | 7 | 62K | 1 | 5.1 | 43.4 | MIT | 1 year ago | |
| eloquent/enumeration | 0.88 | 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 |
|
| php-standard-library/locale | 0.88 | PHP Standard Library Locale component providing locale-aware formatting and parsing utilities. Helps handle language/region settings, localized dates, numbers, and other internationalization tasks in PHP apps with a lightweight, straightforward API. | 1 | 1 | 0 | 113K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| sourceboat/laravel-enumeration | 0.88 | 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 | — | — | — | |
| datomatic/laravel-enum-helper | 0.88 | 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 |
|
| roundly-consulting/enums-for-laravel | 0.88 | 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 | |
| cerbero/enum | 0.88 | 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 | — | |
| sakanjo/laravel-easy-enum | 0.87 | Simplify PHP enums in Laravel with sakanjo/laravel-easy-enum. This lightweight package provides helpers for labels, values, options, validation rules, and Eloquent/Blade integration, reducing boilerplate and keeping enum-driven code clean and readable. | 10 | — | 0 | — | 0 | 12.4 | — | MIT | 5 months ago | |
| dive-be/php-enum-utils | 0.87 | 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 |
|
| suleymanozev/enum-field | 0.87 | Enum Field for Filament provides a simple Laravel form component that turns PHP enums into selectable options, with support for labels, colors, and validation so enum-backed values are easy to manage in Filament admin panels. | 0 | 2 | — | 0 | — | 0.0 | — | — | — | |
| azimkordpour/power-enum | 0.87 | 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 | |
| osama-98/laravel-enum-translatable | 0.87 | 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 | |
| mad-web/laravel-enum | 0.87 | 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 | — | — | |
| nasyrov/laravel-enums | 0.87 | 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 | |
| konekt/enum | 0.87 | 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 | — |
How can I help you explore Laravel packages today?