davidianbonner/enumerated
Enumerated brings first-class enum support to Laravel. Define backed enums and use them in Eloquent casts, validation rules, and form requests, with helpers for labels, options, and comparisons. Keeps domain values type-safe and readable.
Enumerated is a lightweight PHP package that brings type-safe enumeration support to your Laravel applications. It lets you model fixed sets of values—statuses, roles, payment methods—as dedicated classes, keeping magic strings out of your codebase and making invalid values impossible to represent.
Enums integrate cleanly with Eloquent and validation, so you can persist them, compare them, and accept them from requests without boilerplate.
How can I help you explore Laravel packages today?