konekt/enum-eloquent
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| elao/enum | 0.89 | 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 | 33K | 15 | 30.5 | 36.7 | MIT | 5 months ago | |
| adrenalinkin/enum-mapper | 0.89 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| 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. | 568 | 568 | 23 | 597K | 2 | 7.0 | 42.0 | MIT | 1 year ago | |
| spatie/laravel-enum | 0.86 | 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. | 365 | 369 | 36 | 151K | 0 | 11.3 | 35.8 | MIT | 1 year ago | |
| art-fatal/doctrine-enum-bundle | 0.86 | — | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| paillechat/php-enum | 0.86 | 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 | 527 | 0 | 2.0 | 20.8 | MIT | 8 years ago | |
| bensampo/laravel-enum | 0.85 | Laravel Enum provides a powerful enum implementation for Laravel with class-constant definitions, instantiation, casting, validation, localization, bitwise/flag enums, and an artisan generator. Not recommended for new projects—use native PHP 8.1 enums. | 2,030 | 2,044 | 157 | 324K | 1 | 15.0 | 30.5 | MIT | — | |
| konekt/enum | 0.82 | 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 | 108K | 0 | 0.2 | 51.0 | MIT | — | |
| konekt/concord | 0.79 | Laravel extension for building modular applications using conventions on top of service providers. Manage in-app and external modules with isolation-friendly structure, version compatibility across Laravel releases, and tooling around module registration and organization. | 237 | 237 | 15 | 119K | 3 | 2.3 | 37.5 | MIT | — | |
| henzeb/enumhancer | 0.78 | — | 69 | 70 | 8 | 22K | 0 | 16.9 | 36.8 | AGPL-3.0 | 8 months ago | |
| henzeb/enumhancer-ide-helper | 0.74 | 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 | 1K | 0 | 0.3 | 42.9 | AGPL-3.0 | 3 years ago | |
| cviebrock/eloquent-typecast | 0.74 | — | 24 | 26 | 1 | 721 | 0 | 0.2 | 20.4 | MIT | — |
How can I help you explore Laravel packages today?