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

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

jlorente/yii2-validators
========================

A compilation of useful validators for the Yii2 framework.

1.0.6(5y ago)1110MITPHP

Since Feb 9Pushed 5y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Yii2 Validators (Development Phase)
===================================

[](#yii2-validators-development-phase)

A compilation of useful validators for the Yii2 framework.

Included Validators
-------------------

[](#included-validators)

**RichTextFilterValidator** - Filters the inputs of richtext texts on validation.

**AddressValidator** - Useful to validate addresses.

**ColorValidator** - Validates color inputs.

**IntegrityValidor** - Validates the integrity of the foreign keys of the models.

**OccidentalNameValidator** - Validates the names of the occidental people.

**UsernameValidator** - Validates the usernames.

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

[](#installation)

Include the package as dependency under the composer.json file.

To install, either run

```
$ php composer.phar require jlorente/yii2-validators "*"
```

or add

```
...
    "require": {
        // ... other configurations ...
        "jlorente/yii2-validators": "*"
    }
```

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

Usage
-----

[](#usage)

In construction

License
-------

[](#license)

Copyright © 2015 José Lorente Martín .

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~299 days

Recently: every ~144 days

Total

7

Last Release

1897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5b6d568331349beaf1945db65a076cf60e6c124d504fcb43a21937f0c85bde3?d=identicon)[jlorente](/maintainers/jlorente)

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (23 commits)")

---

Tags

validatoraddresscoloryii2namerichtext

### Embed Badge

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

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

###  Alternatives

[paulzi/yii2-json-behavior

Yii2 json attribute behavior

75523.0k3](/packages/paulzi-yii2-json-behavior)[linusu/bitcoin-address-validator

A simple, easy to use PHP Bitcoin address validator

54150.4k3](/packages/linusu-bitcoin-address-validator)[codeonyii/yii2-at-least-validator

Validates at least one (or more) attributes.

28250.4k1](/packages/codeonyii-yii2-at-least-validator)[arogachev/yii2-many-to-many

Many-to-many ActiveRecord relation for Yii 2 framework

3540.6k4](/packages/arogachev-yii2-many-to-many)[tylercd100/laravel-validator-color

Validate that a certain value is a valid CSS color string in Laravel 5

1579.9k](/packages/tylercd100-laravel-validator-color)[dstotijn/yii2-json-schema-validator

A Yii2 extension that provides a validator class for JSON Schema validation.

1730.6k](/packages/dstotijn-yii2-json-schema-validator)

PHPackages © 2026

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