Skip to content

Validators for two data strings used in Mexico for identity, RFC and CURP, for use with the Yii2 Framework

License

Notifications You must be signed in to change notification settings

jcabanillas/yii2-mexvalidators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Mexico Data Validators (yii2-mexvalidators)

Validators for two data strings used in Mexico for identity, RFC and CURP, for use with the Yii 2.* framework.

Installation

Add dependency to your composer.json file:

{
    "require": {
        "jcabanillas/yii2-mexvalidators": "0.0.1"
    }
}

Usage

In order to use the validator, you need to provide the full path to the validator in the model:

public function rules()
{
    return [
       [['rfc'], RfcValidator::className()],
       [['curp'], CurpValidator::className()],
    ];
}

About

Validators for two data strings used in Mexico for identity, RFC and CURP, for use with the Yii2 Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages