Skip to content

bryglen/yii2-validators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Yii 2 credit card validation

credit card validation yii 2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist bryglen/yii2-validators "1.0.1"

or add

"bryglen/yii2-validator": "1.0.1"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your models :

public function rules()
{
    return [
        ['cc', 'bryglen\validators\CreditCardValidator']
    ];
}

About

yii 2 validators

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages