library php-enum
PHP Enums inspired by Java Enums
crussell52/php-enum
PHP Enums inspired by Java Enums
- Monday, March 28, 2016
- by crussell52
- Repository
- 3 Watchers
- 6 Stars
- 4,208 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 3 Forks
- 0 Open issues
- 3 Versions
- 10 % Grown
php-enum
This project is an Enumeration implementation for PHP >= 5.5 which is based on the concepts behind the Java Enum data type., (*1)
Normally, I don't try to force one language's constructs into a different language. However, in my time with Java I have grown to appreciate their Enum data type. I believe the functionality offered is significant enough to warrant a php implementation., (*2)
Check out the full Project Description and Usage on the Wiki!, (*3)
I've also included an example file which will demostrate the primary features of php-enum. (Just make sure you modify the path to the trait at the top of the file!), (*4)