PHP 1 Line Enum is a standalone PHP class that allows the creation of enumerations in PHP. Every enumeration has its own class. Type hinting is supported. It can convert to and from strings. It supports bitwise operations and namespaces. It uses a simple syntax. It lets you get instances by name, by key, or by class constant.