dev-master
9999999-dev https://github.com/jcabanillas/yii2-mexvalidatorsTwo data validators for Mexico-specific data: CURP and RFC.
MIT
The Requires
- php >=5.4.0
- yiisoft/yii2 *
yii2 rfc validators mexico curp
Two data validators for Mexico-specific data: CURP and RFC.
Validators for two data strings used in Mexico for identity, RFC and CURP, for use with the [Yii 2.* framework][1]., (*1)
Add dependency to your composer.json
file:, (*2)
{ "require": { "jcabanillas/yii2-mexvalidators": "0.0.1" } }
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()], ]; }
Two data validators for Mexico-specific data: CURP and RFC.
MIT
yii2 rfc validators mexico curp