exsyst / mini-enum
Lightweight enum helpers
Installs: 3 076
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.1.3
This package is auto-updated.
Last update: 2024-10-19 14:01:45 UTC
README
A few lightweight classes to ease working with enums, with very small run-time performance impact.
How to use
- Run
composer require exsyst/mini-enum
in your project ; - Derive your enum classes containing standalone values from
EXSyst\MiniEnum\Enum
; - Derive your enum classes containing bit masks from
EXSyst\MiniEnum\FlagsEnum
.