Registry / utility / respect-validation

respect-validation

JSON →
library3.1.2phppackagistunverified

The most awesome validation engine ever created for PHP.

composer require respect/validation
INSTALL
IMPORT
SIG · RESPECT-VALIDATION
R
respect-validation
utilityphpv3.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Validator
use Respect\Validation\Validator;

Validate that a value is a positive number.

use Respect\Validation\Validator as v; $number = 123; $valid = v::numericVal()->positive()->validate($number); var_dump($valid); // true
Debug
Known issues
breakingVersion 3.x changed namespace from 'Respect\Validation' to 'Respect\Validation' (no change) but removed some rules.
fix
Check the changelog for removed rules and update your validation chains.
affects: >=3.0.0
Upgrade
Version history
3.1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
respect-validation — pip install respect-validation · libregistry