This package provides a trait designed to simplify and enhance the functionality of enums in PHP applications. It offers utility methods and features that make working with enums more intuitive and efficient, ideal for developers looking to streamline their enum handling in PHP applications.
- PHP 8.1 or higher
You can install the package via composer:
composer require dvlpr1996/php-enum-helper-trait
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;
enum Foo: string {
use EnumHelperTrait;
// Your Additional Cases, Methods And Properties...
}
See the documentation for detailed installation and usage instructions.
Please see CHANGELOG for more information what has changed recently.
If you discover any issues, please using the issue tracker.
The MIT License (MIT). Please see License File for more information.