hayes / php-enum
Extension for the myclabs/php-enum library
Installs: 2 073
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- myclabs/php-enum: ^1.8.3
Requires (Dev)
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-03-01 00:29:58 UTC
README
Extension for the myclabs/php-enum library.
Documentation
Add method
getLabel()
Returns the enum label
Static methods:
-
labels()
Returns the labels of all constants in the Enum class// Define the label corresponding to the enumeration value. example: return [value => label];
-
options()
Returns all possible options as an array