cerbero/enum
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cerbero/laravel-enum | 0.90 | 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 | — | |
| henzeb/enumhancer-ide-helper | 0.87 | Laravel IDE helper for enhanced PHP enums. Improves autocompletion and type hints for Enumhancer features in PhpStorm and similar IDEs, generating stubs/metadata so enum methods, cases, and helpers are easier to discover and use. | 0 | 0 | 0 | 827 | 0 | 0.3 | 40.3 | AGPL-3.0 | 3 years ago | |
| adrenalinkin/enum-mapper | 0.87 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| timeweb/phpstan-enum | 0.87 | 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 | |
| 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 | — | — | |
| konekt/enum-eloquent | 0.87 | Laravel Eloquent casting for Konekt Enums. Add the CastsEnums trait and define a $enums map on your model to automatically convert attributes to Enum objects, supporting Konekt Enum 2–4 and Laravel 8–12. | 63 | 64 | 9 | 121K | 2 | 1.0 | 45.1 | MIT | — | |
| 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 | |
| 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 | |
| lazerg/laravel-enum-pro | 0.87 | 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 | — | — | — | |
| synergitech/laravel-magic-enums | 0.87 | Laravel Magic Enums adds powerful helpers to PHP enums: labels, descriptions, validation rules, model casts, select options, and fluent methods, making enums more expressive and convenient throughout Laravel applications. | 9 | — | 0 | — | 0 | 9.4 | — | MIT | 6 months ago | |
| sourceboat/laravel-enumeration | 0.87 | 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 | — | — | — | |
| frostiede/enum-bundle | 0.86 | 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 | — | — | — | |
| foxbytehq/laravel-backed-enums | 0.86 | 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 | |
| marc-mabe/php-enum-phpstan | 0.86 | PHPStan extension for marc-mabe/php-enum. Teaches PHPStan about enum accessor methods and allowed values so static analysis understands your enumerations and catches invalid usage. Install with Composer and include the provided extension.neon. | 12 | 12 | 6 | 9K | 0 | 2.6 | 39.3 | BSD-3-Clause | 1 year ago | |
| henzeb/enumhancer | 0.85 | — | 69 | 69 | 8 | 40K | 0 | 13.0 | 39.2 | AGPL-3.0 | 10 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 | |
| elao/enum | 0.85 | 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 | |
| greg0ire/enum | 0.85 | 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 | |
| konekt/enum | 0.85 | 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 | — | |
| spatie/laravel-enum | 0.85 | Laravel integration for spatie/enum: use Enum base class in Laravel, cast model attributes to enums (including nullable and arrays), and get Laravel-friendly behavior via custom casts and Castable support for Eloquent. | 364 | 367 | 37 | 215K | 0 | 11.3 | 38.3 | MIT | 1 year ago |
How can I help you explore Laravel packages today?