Download the PHP package morilog/php-enum without Composer
On this page you can find all versions of the php package morilog/php-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download morilog/php-enum
More information about morilog/php-enum
Files in morilog/php-enum
Download morilog/php-enum
More information about morilog/php-enum
Files in morilog/php-enum
Vendor morilog
Package php-enum
Short Description A Library for easy working with Enums in php programming language
License
Package php-enum
Short Description A Library for easy working with Enums in php programming language
License
Please rate this library. Is it a good library?
Informations about the package php-enum
PHP-ENUM
There is not any ENUM in php programming language. BTW every programmer may need to this feature.
In this library i provide the simple and easy way for working with enums.
Installation
Run bellow command:
Usage
Writing new Enums
Create a class that extends the \Morilog\PhpEnum\Enum class
Constants keys must be all UPPERCASE and separate words by `` (underscore)
Constants values can be all scalar values such as
string,integer,boolean, etc.
Creating enum instances
By class constructor
By camelCase constant name
By fromKey() method
By fromValue() method
Static methods
Comparison enums
All versions of php-enum with dependencies
PHP Build Version
Package Version
The package morilog/php-enum contains the following files
Loading the files please wait ...