Skip to content

A package to generate PHP 8.1 Enums, and adds Laravel Collection helpers around them.

License

Notifications You must be signed in to change notification settings

returnearly/laravel-enums

Repository files navigation

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.

About

A package to generate PHP 8.1 Enums, and adds Laravel Collection helpers around them.

Topics

Resources

License

Stars

Watchers

Forks

Languages