PHPackages                             cmanley/php-validate - 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. cmanley/php-validate

Abandoned → [cmanley/validate](/?search=cmanley%2Fvalidate)Library[Validation &amp; Sanitization](/categories/validation)

cmanley/php-validate
====================

PHP validation library. You can use it to validate almost anything, e.g. form posts, function parameters, etc.

0.9.9(2y ago)41282MITPHPPHP &gt;=7.1

Since Jun 13Pushed 2y ago3 watchersCompare

[ Source](https://github.com/cmanley/PHP-Validate)[ Packagist](https://packagist.org/packages/cmanley/php-validate)[ Docs](https://github.com/cmanley/PHP-Validate)[ RSS](/packages/cmanley-php-validate/feed)WikiDiscussions master Synced 2mo ago

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

PHP-Validate
============

[](#php-validate)

PHP validation library. Inspired by [Params::Validate](http://search.cpan.org/perldoc/Params::Validate) for Perl. You can use it to validate almost anything, but typically it can be used for (strictly) validating input from HTML forms, fields while reading CSV files, function parameters, etc.

### Requirements

[](#requirements)

- PHP 7.1 or later

### Installation

[](#installation)

Download or checkout from git, or install the packagist package cmanley/validate.

**WARNING**: This is a still a work in early progress and the API can change at any time. So use fixed releases and don't download from the master branch unless you're prepared to fix things yourself.

### Synopsis

[](#synopsis)

**Example of function associative array parameter validation:**

```
