Download the PHP package yii2mod/yii2-enum without Composer
On this page you can find all versions of the php package yii2mod/yii2-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yii2mod/yii2-enum
More information about yii2mod/yii2-enum
Files in yii2mod/yii2-enum
Download yii2mod/yii2-enum
More information about yii2mod/yii2-enum
Files in yii2mod/yii2-enum
Please rate this library. Is it a good library?
Informations about the package yii2-enum
Enum Extension for Yii2
Enum implementation for Yii Framework 2.0
Support us
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
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 yii2-enum with dependencies
PHP Build Version
Package Version
The package yii2mod/yii2-enum contains the following files
Loading the files please wait ....