Download the PHP package herroffizier/yii2-translit-validator without Composer
On this page you can find all versions of the php package herroffizier/yii2-translit-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download herroffizier/yii2-translit-validator
More information about herroffizier/yii2-translit-validator
Files in herroffizier/yii2-translit-validator
Download herroffizier/yii2-translit-validator
More information about herroffizier/yii2-translit-validator
Files in herroffizier/yii2-translit-validator
Vendor herroffizier
Package yii2-translit-validator
Short Description Yii2 validator that transliterates model attribute values.
License BSD-3-Clause
Package yii2-translit-validator
Short Description Yii2 validator that transliterates model attribute values.
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package yii2-translit-validator
Yii2 Attribute Index Validator
This validator takes value from one attribute and puts transliterated value to another attribute. Also, validator may prepare transliterated string for usage in URL. Transliteration is made by URLify.
Installation
Install validator with Composer:
Usage
Add validator to your model's rules array before validator (if any) and set its property to point source attribute which value should be transliterated.
Validator has a few options to customize its behavior.
- as mentioned above points to source attribute which value should be transliterated. Empty by default and required.
- enforces lower case for transliterated string. Default is .
- replaces all invalid characters with value. Default is .
- is a replacement for invalid characters. Used in conjunction with . Default is .
- is a regular expression which matches all incorrect symbols for URL. Used in conjunction with . Default is which matches all non-alphanumeric symbols.
- trims invalid characters at beginning and at end of given string. Used in conjunction with . Default is which means that no characters will be trimmed.
All versions of yii2-translit-validator with dependencies
PHP Build Version
Package Version
The package herroffizier/yii2-translit-validator contains the following files
Loading the files please wait ....