ktaris / yii2-mexvalidators
Two data validators for Mexico-specific data: CURP and RFC.
Installs: 7 926
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 3
Type:yii-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-09 18:19:17 UTC
README
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": { "ktaris/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()], ]; }