The preferred way to install this extension is through composer.
To install, either run
$ php composer.phar require edofre/yii2-validators "V1.0.2"
or add
"edofre/yii2-validators": "V1.0.2"
to the require
section of your composer.json
file.
/**
* @inheritdoc
*/
public function rules()
{
return [
...
['zip_code', 'edofre\validators\ZipCodeValidator'],
...
];
}
/**
* @inheritdoc
*/
public function rules()
{
return [
...
['price', 'edofre\validators\PriceValidator'],
...
];
}
yii2-validators
Date: 25-Dec-2016
Date: 11-Jun-2016
Date: 15-Mar-2016
Comments