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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a296ecc · Sep 6, 2024

History

36 Commits
Sep 6, 2024
Apr 16, 2023
Jan 29, 2023
Jan 28, 2023
Jan 29, 2023
Jan 28, 2023
Sep 6, 2024
Jan 29, 2023
Jan 30, 2023
Sep 6, 2024
Jan 28, 2023
Sep 6, 2024
Jan 30, 2023

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.