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

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

thtmorais/yii2-validators
=========================

Validation suite for Yii PHP Framework 2

0.0.1(1y ago)23.7k↓45%MITPHP

Since Feb 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/thtmorais/yii2-validators)[ Packagist](https://packagist.org/packages/thtmorais/yii2-validators)[ RSS](/packages/thtmorais-yii2-validators/feed)WikiDiscussions main Synced 1mo ago

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

Validation suite for Yii PHP Framework 2
----------------------------------------

[](#validation-suite-for-yii-php-framework-2)

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

[](#installation)

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

Either run

```
composer require thtmorais/yii2-validators "*"

```

or add

```
"thtmorais/yii2-validators": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

### XandValidator

[](#xandvalidator)

```
