Div PHP Enum Solution
This is a PHP Enum Solution using classes and type hinting. Also you can build a taxonomies of enums!
An enumeration type, "enum" for short, is a data type to categorise named values. Enums can be used instead of hard coded strings to represent, for example, the status of a blog post in a structured and typed way.
In July 2019, I wrote a gist searching a solution for this.