ktaris/yii-mexvalidators

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

Installs: 80

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 2

Open Issues: 1

Type:yii-extension

pkg:composer/ktaris/yii-mexvalidators

v0.1.1 2015-02-20 23:24 UTC

This package is not auto-updated.

Last update: 2025-09-27 22:22:53 UTC


README

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

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'],
       ['curp', 'vendor.ktaris.yii-mexvalidators.curpValidator'],
    ];
}