PHPackages                             dynamikaweb/yii2-br-validators - 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. dynamikaweb/yii2-br-validators

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

dynamikaweb/yii2-br-validators
==============================

Yii2 Brazilian document validator

v1.0(5y ago)02.6kBSD-3-ClausePHPPHP &gt;=5.5.0

Since Aug 18Pushed 5y agoCompare

[ Source](https://github.com/dynamikaweb/yii2-br-validators)[ Packagist](https://packagist.org/packages/dynamikaweb/yii2-br-validators)[ RSS](/packages/dynamikaweb-yii2-br-validators/feed)WikiDiscussions master Synced today

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

dynamikaweb/yii2-br-validators
==============================

[](#dynamikawebyii2-br-validators)

[![Latest Stable Version](https://camo.githubusercontent.com/e9d36a7ecb13e5c6c10e149569ba24df93f189950731aa98d856506186bf513e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f64796e616d696b617765622f796969322d62722d76616c696461746f7273)](https://github.com/dynamikaweb/yii2-br-validators/releases) [![Total Downloads](https://camo.githubusercontent.com/fd78f14a7aeb83cc7f2d7481f4a41db0710f3c906cfe08d1739ce6aba025b863/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d696b617765622f796969322d62722d76616c696461746f72732f646f776e6c6f616473)](https://packagist.org/packages/dynamikaweb/yii2-br-validators) [![License](https://camo.githubusercontent.com/bd4c8545babd908ad63f18285151fd09e2b763dbb85343f2150a6b0041cd53f4/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d696b617765622f796969322d76616c696461746f72732f6c6963656e7365)](https://github.com/dynamikaweb/yii2-validators/blob/master/LICENSE) [![Codacy Badge](https://camo.githubusercontent.com/d019744953789c2268c28c9a15094432255699fb33ee8285ea24f6d6be2c5f2d/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3330636362656165383230313434393639323064326634663432663562373331)](https://www.codacy.com/gh/dynamikaweb/yii2-br-validators?utm_source=github.com&utm_medium=referral&utm_content=dynamikaweb/yii2-br-validators&utm_campaign=Badge_Grade) [![Build Test](https://camo.githubusercontent.com/79176fecc7e83f8fb049fb271496a9a5d56051b87cb2bcf0d56893067fec93bd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64796e616d696b617765622f796969322d62722d76616c696461746f72732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dynamikaweb/yii2-br-validators/) [![Latest Unstable Version](https://camo.githubusercontent.com/e3f22581ed80884693e060989be1e180dc573a611f55bd656156d88030383a05/68747470733a2f2f706f7365722e707567782e6f72672f64796e616d696b617765622f796969322d62722d76616c696461746f72732f762f756e737461626c65)](https://github.com/dynamikaweb/yii2-br-validators/find/master)

About
-----

[](#about)

Brazilian document validator

- Titulo de Eleitor: Número do documento eleitoral.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require dynamikaweb/yii2-br-validators "*"
```

or add

```
"dynamikaweb/yii2-br-validators": "*"
```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

Add the rules as the following example

```
use Yii;
use yii\base\Model;
use dynamikaweb\validators\TituloValidator;

class PersonExample extends Model
{
	public $name;
	public $titulo_eleitor;

	/**
	 * @return array the validation rules.
	 */
	public function rules()
	{
		return [
            		// name is required
			['name', 'required'],
			// Título Eleitoral validator
			['titulo_eleitor', TituloValidator::className()]
		];
	}
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Unknown

Total

1

Last Release

2091d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29123479?v=4)[DornellesTV](/maintainers/RodrigoDornelles)[@RodrigoDornelles](https://github.com/RodrigoDornelles)

---

Top Contributors

[![robsondrs](https://avatars.githubusercontent.com/u/53342735?v=4)](https://github.com/robsondrs "robsondrs (7 commits)")[![RodrigoDornelles](https://avatars.githubusercontent.com/u/29123479?v=4)](https://github.com/RodrigoDornelles "RodrigoDornelles (1 commits)")

---

Tags

validatoryii2yiititulo de eleitor

### Embed Badge

![Health badge](/badges/dynamikaweb-yii2-br-validators/health.svg)

```
[![Health](https://phpackages.com/badges/dynamikaweb-yii2-br-validators/health.svg)](https://phpackages.com/packages/dynamikaweb-yii2-br-validators)
```

###  Alternatives

[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)[arogachev/yii2-many-to-many

Many-to-many ActiveRecord relation for Yii 2 framework

3541.2k4](/packages/arogachev-yii2-many-to-many)[yiibr/yii2-br-validator

Provide validations and features for brazilian localization

14103.2k4](/packages/yiibr-yii2-br-validator)

PHPackages © 2026

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