PHPackages                             jeffersoncarvalho/validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jeffersoncarvalho/validator

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

jeffersoncarvalho/validator
===========================

Provide validations and features for brazilian localization

v1.0.2(5y ago)057BSD-3-ClausePHP

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jscarvalho76/yii2-validator)[ Packagist](https://packagist.org/packages/jeffersoncarvalho/validator)[ RSS](/packages/jeffersoncarvalho-validator/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Validator for YII2
==================

[](#validator-for-yii2)

Yii2 Extension - validador de PIS/Pasep para Brasil

- Pis

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)[![Latest Stable Version](https://camo.githubusercontent.com/febb85589afb1e8e95714d8b56a2f9d55072b40b974d86b55938826f86cfc86e/68747470733a2f2f706f7365722e707567782e6f72672f6a6566666572736f6e63617276616c686f2f76616c696461746f722f76)](//packagist.org/packages/jeffersoncarvalho/validator)[![Total Downloads](https://camo.githubusercontent.com/1df65093c4ba46bee31ad0182b52cfbeca7678612b3c18eba345dd29f75a854e/68747470733a2f2f706f7365722e707567782e6f72672f6a6566666572736f6e63617276616c686f2f76616c696461746f722f646f776e6c6f616473)](//packagist.org/packages/jeffersoncarvalho/validator)

Installation with Composer
--------------------------

[](#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
-----

[](#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()],
		];
	}
}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

2053d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2007006?v=4)[Jefferson de Carvalho Silva](/maintainers/jeffersoncarvalho)[@jeffersoncarvalho](https://github.com/jeffersoncarvalho)

---

Top Contributors

[![jscarvalho76](https://avatars.githubusercontent.com/u/16222981?v=4)](https://github.com/jscarvalho76 "jscarvalho76 (11 commits)")

---

Tags

validatormodelyiibrbrazilbrasilpis pasep

### Embed Badge

![Health badge](/badges/jeffersoncarvalho-validator/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersoncarvalho-validator/health.svg)](https://phpackages.com/packages/jeffersoncarvalho-validator)
```

###  Alternatives

[yiibr/yii2-br-validator

Provide validations and features for brazilian localization

14103.2k4](/packages/yiibr-yii2-br-validator)[paulzi/yii2-json-behavior

Yii2 json attribute behavior

76528.6k3](/packages/paulzi-yii2-json-behavior)[codeonyii/yii2-at-least-validator

Validates at least one (or more) attributes.

28253.5k1](/packages/codeonyii-yii2-at-least-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
