PHPackages                             wirwolf/yii2-request-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. wirwolf/yii2-request-validator

AbandonedArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

wirwolf/yii2-request-validator
==============================

v1.2.2(9y ago)13.0k1PHP

Since Jan 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/wirwolf/yii2-request-validator)[ Packagist](https://packagist.org/packages/wirwolf/yii2-request-validator)[ RSS](/packages/wirwolf-yii2-request-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Yii2 Request Validator
======================

[](#yii2-request-validator)

Library to validate input data(method,payload,headers)

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

[](#installation)

Run command

```
composer require wirwolf/yii2-request-validator
composer update

```

Or add

```
"wirwolf/yii2-request-validator": "*"

```

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

Usage
-----

[](#usage)

In any controller add behavior requestValidator.

Example:

```
    public function behaviors()
    {
        return [
            'requestValidator' => [
                'class' => ActionValidator::className(),
                'actions' => [
                    'index' => [
                        'get' => [
                            'headers' => false,
                            'fields' => [
                                'key' => '',
                                'recursiveKey' => ['key']
                            ],
                        ]
                    ],
                ],
            ]
        ];
    }
```

TODO:
-----

[](#todo)

Bugfix: remote any value from fields

Add: field type validator. IsRequired, field type(\\yii\\validators) and default value

Add: Functional tests

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Recently: every ~82 days

Total

6

Last Release

3425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4d59ea4bdf00e8a2b7ac18da994d769a06136ca1cfdf9e17306e235901cac31?d=identicon)[wir\_wolf](/maintainers/wir_wolf)

---

Tags

requestyii2data validationdata filters

### Embed Badge

![Health badge](/badges/wirwolf-yii2-request-validator/health.svg)

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

###  Alternatives

[borales/yii2-phone-input

Yii2 International telephone numbers - Asset Bundle, Behavior, Validator, Widget

1341.6M6](/packages/borales-yii2-phone-input)[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)[yii2mod/yii2-validators

Collection of useful validators for Yii Framework 2.0

1816.8k](/packages/yii2mod-yii2-validators)

PHPackages © 2026

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