wowpack / php-enum
There is no license information available for the latest version (v1.0.0) of this package.
Enum support for PHP
v1.0.0
2025-03-28 10:05 UTC
Requires
- php: ^7.2 || ^8.0
- illuminate/support: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Description
This package provides enum support for PHP, allowing for easy management and usage of enumerations.
Installation
You can install the package via Composer:
composer require wowpack/php-enum
Usage
To use the package, implement the Enumerable
interface in your enum classes. Here is an example:
use Wowpack\Enumeration\Enumerable; use Wowpack\Enumeration\InteractsWithEnum; enum MyEnum implements Enumerable { use InteractsWithEnum; // Implement the required methods... }
License
This package is licensed under the MIT License.