PHPackages                             infinitypaul/php-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. infinitypaul/php-validator

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

infinitypaul/php-validator
==========================

A validator featuring rule objects, string rule mapping, wildcard validation and more

2.0.0(2y ago)122.0k↓25%MITPHPPHP ^7.1|^8.0CI failing

Since Jun 19Pushed 2y ago1 watchersCompare

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

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

Flexible PHP Validation Class
=============================

[](#flexible-php-validation-class)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c7c63d5389d041cabbd635b704db0ba79ff9d4a7b86852bbda9d525ca00dcb44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e66696e6974797061756c2f7068702d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infinitypaul/php-validator)[![Build Status](https://camo.githubusercontent.com/ffc6aaa266f243d8c8a5e05a1a6e45d15c0315f8d56fe73bb2bae31ab8a22d50/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e66696e6974797061756c2f7068702d76616c696461746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/infinitypaul/php-validator)[![Quality Score](https://camo.githubusercontent.com/0e387725fb7dcf775930c614f77e01d4c30f8c7ec055050fd994e9b00f3b4353/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e66696e6974797061756c2f7068702d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/infinitypaul/php-validator)[![Total Downloads](https://camo.githubusercontent.com/9564083d67103b79774a9ebabfc617ff153eff32d1aa0fc45482d4a98aad332b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e66696e6974797061756c2f7068702d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/infinitypaul/php-validator)

This package can validate values according to flexible rules.

It can take an associative array of values and a set of rules and validate the values to verify if they comply with the rules.

The package can validate the values according to a given list of common rules, as well validate the values with custom rules implemented by external validation classes.

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

[](#installation)

You can install the package via composer:

```
composer require infinitypaul/php-validator
```

Basic Usage
-----------

[](#basic-usage)

```
