returnearly / laravel-enums
A helper package for PHP 8.1+ enums for Laravel.
Installs: 4 506
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 2
Requires
- php: ^8.2
- illuminate/contracts: >=9.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.0
This package is auto-updated.
Last update: 2024-12-06 18:13:17 UTC
README
A package to generate PHP 8.1 Enums, and adds Laravel Collection helpers around them.
Installation
You can install the package via composer:
composer require returnearly/laravel-enums
Usage
php artisan make:enum UserTypeEnum --int --test
php artisan make:enum UserStatusEnum --string --test
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.