Download the PHP package jeffersoncarvalho/validator without Composer
On this page you can find all versions of the php package jeffersoncarvalho/validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package validator
Validator for YII2
Yii2 Extension - validador de PIS/Pasep para Brasil
- Pis
Installation with Composer
If you're using Composer to manage dependencies, you can use
$ composer require jeffersoncarvalho/validator
or you can include the following in your composer.json file:
{
"require": {
"jeffersoncarvalho/validator": "~1.0"
}
}
Usage
Add the rules as the following example
use Yii;
use yii\base\Model;
use jeffersoncarvalho\validator\PisPasepValidator
class PessoaForm extends Model
{
public $pis;
/**
* @return array the validation rules.
*/
public function rules()
{
return [
// PIS validator
['pis', PisPasepValidator::className()],
];
}
}
All versions of validator with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2.0.13
The package jeffersoncarvalho/validator contains the following files
Loading the files please wait ....