Fluent validation engine for PHP with more than 150 validators
open sourceMITfree
Respect\Validation is a validation library for PHP with a fluent, chainable API (v::numericVal()->positive()->between(1, 255)->isValid($input)) and more than 150 tested validators, plus detailed exception handling for reporting what failed and why.
Problems it solves
- validate user input in a PHP app
- chain validation rules for a form field in PHP
- get readable validation error messages in PHP
Features
- chainable fluent validation rules
- 150+ tested validators
- advanced exception handling
Alternatives
The same job
These do what Respect\Validation does.
- Webmozart Assert Assertions to validate PHP method input and output with clear error messages
- Assert (beberlei/assert) Thin assertion library for input validation in PHP business models and libraries
- EmailValidator PHP email address validation against the email RFCs
