talira

Respect\Validation

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.

  1. Webmozart Assert Assertions to validate PHP method input and output with clear error messages
  2. Assert (beberlei/assert) Thin assertion library for input validation in PHP business models and libraries
  3. EmailValidator PHP email address validation against the email RFCs

Compare Respect\Validation with the top 3