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

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

cmanley/validate
================

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

0.9.10(1mo ago)44.0k↑250%2MITPHPPHP &gt;=7.4

Since Jun 13Pushed 1mo ago3 watchersCompare

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

READMEChangelog (9)Dependencies (1)Versions (11)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:**

```
