2017 © Pedro Peláez
 

yii-extension yii2-mexvalidators

Two data validators for Mexico-specific data: CURP and RFC.

image

jcabanillas/yii2-mexvalidators

Two data validators for Mexico-specific data: CURP and RFC.

  • Wednesday, January 25, 2017
  • by jcabanillas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 45 % Grown

The README.md

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][1]., (*1)

Installation

Add dependency to your composer.json file:, (*2)

{
    "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:, (*3)

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

The Versions

25/01 2017

dev-master

9999999-dev https://github.com/jcabanillas/yii2-mexvalidators

Two data validators for Mexico-specific data: CURP and RFC.

  Sources   Download

MIT

The Requires

 

yii2 rfc validators mexico curp