marc-mabe/php-enum
Native PHP enum implementation via an abstract base class. Extend it to define enumerations from public constants (supports scalars, null, and arrays), create and compare enum instances, and keep a strict set of named values for safer domain modeling.
None
|
Package
|
Constraint
|
|---|---|
| phpbench/phpbench | ^0.16.10 || ^1.0.4 |
| phpstan/phpstan | ^1.3.1 |
| phpunit/phpunit | ^7.5.20 | ^8.5.52 | ^9.6.33 |
| vimeo/psalm | ^4.17.0 | ^5.26.1 |
How can I help you explore Laravel packages today?