open-southeners/laravel-model-status
Lightweight Laravel model status handling using native PHP enums—no extra tables needed. Define a status enum, attach it via a PHP attribute, and use a trait for helpers like setStatus, setStatusWhen, hasStatus, and optional status events.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| paillechat/php-enum | 0.88 | 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 | 471 | 0 | 2.0 | 20.1 | MIT | 7 years ago | |
| adrenalinkin/enum-mapper | 0.85 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| norotaro/enumata | 0.84 | — | 3 | 4 | 1 | 327 | 1 | 2.9 | 26.5 | MIT | 1 year ago | |
| elao/enum | 0.84 | 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 | 42K | 15 | 32.4 | 38.9 | MIT | 2 months ago | |
| konekt/enum-eloquent | 0.83 | 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 | 62K | 2 | 1.0 | 41.1 | MIT | — | |
| spatie/laravel-model-status | 0.83 | Add status history to any Eloquent model with Spatie’s HasStatuses trait. Set statuses (strings or enums), store reasons/extra info, and retrieve current or previous statuses via convenient helpers like status() and latestStatus(). | 1,054 | 1,057 | 85 | 45K | 0 | 30.8 | 25.4 | MIT | 3 months ago | |
| henzeb/enumhancer | 0.83 | — | 68 | 70 | 8 | 26K | 0 | 20.7 | 39.2 | AGPL-3.0 | 5 months ago | |
| laudis/typed-enum | 0.82 | — | 4 | 4 | 0 | 26K | 0 | 0.0 | 51.3 | MIT | — | |
| aboutcoders/enum-serializer-bundle | 0.82 | Symfony bundle adding JMS Serializer support for myclabs/php-enum enums. Register enum types via config or tagged services, then serialize/deserialize to JSON using enum class names in @Type annotations or directly in serializer calls. | 3 | 4 | 5 | 459 | 1 | 0.6 | 28.5 | MIT | 5 years ago | |
| spatie/laravel-model-states | 0.81 | Add state and state machine behavior to Eloquent models. Represent each state as its own class, automatically cast and store states in the database, and define clean, safe transitions and state-specific behavior in your Laravel apps. | 1,292 | 1,294 | 106 | 343K | 0 | 36.7 | 38.5 | MIT | 1 month ago | |
| archtechx/enums | 0.81 | 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 | 554K | 2 | 7.0 | 41.6 | MIT | 1 year ago | |
| laracraft-tech/laravel-useful-traits | 0.81 | Laravel package with handy daily-use additions: traits for PHP 8.1+ enums (get names/values/array) and Eloquent query scopes (e.g., select all columns except specific ones, date-based scopes), plus an Artisan db:truncate command. | 58 | 58 | 2 | 53 | 1 | 21.7 | 4.4 | MIT | 2 months ago | |
| spatie/laravel-enum | 0.80 | 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 | 368 | 36 | 123K | 0 | 11.3 | 34.9 | MIT | 1 year ago | |
| open-southeners/extended-laravel | 0.79 | Adds handy Laravel extensions and helper utilities to streamline common tasks and reduce boilerplate. Designed as a lightweight add-on for projects needing extra convenience features beyond the core framework, with simple installation and integration. | 0 | 0 | 0 | 100 | 0 | 21.7 | 30.3 | MIT | 2 months ago |
How can I help you explore Laravel packages today?