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

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

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

Requirements

This extension requires Yii 1.1.

Installation

Add dependency to your composer.json file:

{
    "require": {
        "ktaris/yii-mexvalidators": "0.1.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', 'vendor.ktaris.yii-mexvalidators.rfcValidator'],
    ];
}

Resources

0 0
1 follower
0 downloads
Yii Version: 1.1
License: MIT
Category: Validation
Developed by: Carlos Ramos
Created on: Feb 20, 2015
Last updated: 9 years ago

Related Extensions