Download the PHP package corp-soft/php-enum without Composer
On this page you can find all versions of the php package corp-soft/php-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download corp-soft/php-enum
More information about corp-soft/php-enum
Files in corp-soft/php-enum
Download corp-soft/php-enum
More information about corp-soft/php-enum
Files in corp-soft/php-enum
Please rate this library. Is it a good library?
Informations about the package php-enum
PHP Enum implementation
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Available Methods:
createByName()
- Creates a new type instance using the name of a value.getValueByName()
- Returns the constant key by value(label)createByValue()
- Creates a new type instance using the value.listData()
- Returns the associative array with constants values and labelsgetLabel()
- Returns the constant label by keygetConstantsByName()
- Returns the list of constants (by name) for this type.getConstantsByValue()
- Returns the list of constants (by value) for this type.isValidName()
- Checks if a name is valid for this type.isValidValue()
- Checks if a value is valid for this type.
Declaration
Enum creation
Static methods
Type-Hint and Validation Rules
All versions of php-enum with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package corp-soft/php-enum contains the following files
Loading the files please wait ....