Looking to hire Laravel developers? Try LaraJobs

laravel-enums maintained by returnearly

Description
A helper package for PHP 8.1+ enums for Laravel.
Author
Last update
2025/05/05 01:20 (dev-main)
License
Downloads
44 821

Comments
comments powered by Disqus

A helper package for PHP 8.1+ enums for Laravel.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.