crussell52/php-enum

PHP Enums inspired by Java Enums

Installs: 36 868

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 2

Open Issues: 0

pkg:composer/crussell52/php-enum

v0.1 2016-03-10 17:00 UTC

This package is not auto-updated.

Last update: 2025-10-11 23:43:34 UTC


README

This project is an Enumeration implementation for PHP >= 5.5 which is based on the concepts behind the Java Enum data type.

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.

Check out the full Project Description and Usage on the Wiki!

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!)