Download the PHP package roundly-consulting/enums-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/enums-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/enums-for-laravel
More information about roundly-consulting/enums-for-laravel
Files in roundly-consulting/enums-for-laravel
Package enums-for-laravel
Short Description Convenient helper methods for PHP enums in Laravel applications
License MIT
Homepage https://roundly-consulting.com/open-source/docs/enums-for-laravel
Informations about the package enums-for-laravel
Enums for Laravel
Helper methods for PHP enums in Laravel. Drop the Helpers trait into an enum to get translated
labels, names/values/labels lists, select-ready options, case lookups, a validation rule, random
selection, equality checks and conditional callbacks — for backed and pure enums alike.
Installation
Requires PHP 8.4, Laravel 12 or 13.
Usage
Add the Helpers trait to any enum:
Then use it for labels, selects, validation and lookups:
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/enums-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of enums-for-laravel with dependencies
illuminate/container Version ^12.0|^13.0
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0