Download the PHP package jesseschalken/enum without Composer
On this page you can find all versions of the php package jesseschalken/enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package enum
php-enum
Fast and safe enums for PHP 5.3+ without using reflection.
Objectives:
- Be fast. Checking an enum value should be O(1).
- Be concise. The author of the enum should have to write as minimal code as possible without compromising the other objectives.
- Be safe. An instance of the concrete Enum class may only contain a valid value.
- Without Reflection. In particular:
- Don't use
ReflectionClass
to get a list of a class's constants, since this violates the developer's expectation that a class constant not referenced viaClass::CONSTANT
is unused and can be removed. - Don't use
__call
or__callStatic
to create pseudo-methods, since this violates the developer's expectation that a call to a method of the formClass::method()
or$object->method()
which cannot be found in the code is an error.
- Don't use
Example:
All versions of enum with dependencies
PHP Build Version
Package Version
No informations.
The package jesseschalken/enum contains the following files
Loading the files please wait ....