jcabanillas / yii2-pervalidators
Two data validators for Peru-specific data: RUC.
Package info
github.com/jcabanillas/yii2-pervalidators
Type:yii-extension
pkg:composer/jcabanillas/yii2-pervalidators
dev-master
2021-07-22 16:08 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-02-23 02:38:13 UTC
README
Validators for two data strings used in Peru for identity, RUC, for use with the Yii 2.* framework.
Installation
Add dependency to your composer.json file:
{
"require": {
"jcabanillas/yii2-rucvalidators": "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()], ]; }