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.
rough is software to embed macros in PHP code. Add a comment to your code, run the macro command, and rough generates code. The macros are not removed from the source code and can easily be updated. Currently, there are macros to generate get methods, generate set methods, and emulate traits in PHP 5.3.