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

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

wdmg/yii2-validators
====================

Custom validators for Yii 2.0

1.1.0(2y ago)11.3k111MITPHP

Since Jan 27Pushed 2y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (10)Used By (11)

[![Yii2](https://camo.githubusercontent.com/3f29058a9886ae3e9efc09df82d551051f8ea6c8da1176d9e8ca8a64be6f9b40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72657175697265642d596969325f76322e302e34302d626c75652e737667)](https://packagist.org/packages/yiisoft/yii2)[![Downloads](https://camo.githubusercontent.com/71f31032026798065112c11d22ab10895f88f247e9a31f20b7e8df69727390ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f796969322d76616c696461746f72732e737667)](https://packagist.org/packages/wdmg/yii2-validators)[![Packagist Version](https://camo.githubusercontent.com/b8e0b93bf2bac0b4d6d97fff319494f688e5daa2f8fc5ba53a7ceeb1c4223506/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f796969322d76616c696461746f72732e737667)](https://packagist.org/packages/wdmg/yii2-validators)[![Progress](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)](https://camo.githubusercontent.com/315c55c18b58f54e699e6de550cbbec72c9adeebced7d22e2822458e07822fb3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d696e5f646576656c6f706d656e742d7265642e737667)[![GitHub license](https://camo.githubusercontent.com/a84a571ef6efdf65f419b94210886476ac0d567f6241b60da9c7f42c7aad47a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f796969322d76616c696461746f72732e737667)](https://github.com/wdmg/yii2-validators/blob/master/LICENSE)

Yii2 Validators
===============

[](#yii2-validators)

Custom validators for Yii2

Requirements
============

[](#requirements)

- PHP 5.6 or higher
- Yii2 v.2.0.40 and newest

Installation
============

[](#installation)

To install the validators, run the following command in the console:

`$ composer require "wdmg/yii2-validators"`

Usage
=====

[](#usage)

Example of usecase StopListValidator to model rules:

```

```

Status and version \[in progress development\]
==============================================

[](#status-and-version-in-progress-development)

- v.1.1.0 - Update copyrights
- v.1.0.7 - StopListValidator renamed to ReservedValidator
- v.1.0.6 - Update README.md and dependencies

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

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

Recently: every ~326 days

Total

9

Last Release

1093d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (22 commits)")

---

Tags

yii2extensionyiivalidatorsblacklistwdmgstoplist

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.8k58](/packages/skeeks-cms)[bryglen/yii2-validators

credit card validation yii 2

1427.0k](/packages/bryglen-yii2-validators)

PHPackages © 2026

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