edofre/yii2-validators Yii2 frequently used validators

validatorpricezipcodevalidators

Yii2 validators

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Installation

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.

ZipCodeValidator

Insert into rules as following

/**
* @inheritdoc
*/
public function rules()
{
    return [
        ...
        ['zip_code', 'edofre\validators\ZipCodeValidator'],
        ...
    ];
}

PriceValidator

Insert into rules as following

/**
* @inheritdoc
*/
public function rules()
{
    return [
        ...
        ['price', 'edofre\validators\PriceValidator'],
        ...
    ];
}

Changelog

Change Log: yii2-validators

Version 1.0.2

Date: 25-Dec-2016

  • Formatting fixes
  • Move files to src dir
  • Added gitignore

Version 1.0.1

Date: 11-Jun-2016

  • Formatting fixes

Version 1.0.0

Date: 15-Mar-2016

  • Initial release

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



V1.0.2 is the latest of 2 releases



MIT license
Stats
1 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
9 total downloads