Download the PHP package dsheiko/validate without Composer
On this page you can find all versions of the php package dsheiko/validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dsheiko/validate
More information about dsheiko/validate
Files in dsheiko/validate
Download dsheiko/validate
More information about dsheiko/validate
Files in dsheiko/validate
Vendor dsheiko
Package validate
Short Description Validation library for testing primitive and complex types against a contract
License MIT
Package validate
Short Description Validation library for testing primitive and complex types against a contract
License MIT
Please rate this library. Is it a good library?
Informations about the package validate
Dsheiko\Validate
Extendable validation library for testing primitive and complex types (including key-value arrays) against a contract
- Installation
- Usage
Installation
Require as a composer dependency:
Highlights
- Validators are dead simple to extend
- It's really easy to validate precondition/postcondition contracts
- Validator assertions are directly accessible
- Validation of nested arrays
Usage
- Basic Usage
- Provided Validators
- Validator Chain
- Validation by Contract
- Map Validation
- Custom Validators
Examples
Design by Contract
may throw
Dsheiko\Validate\IsString\Exception
Dsheiko\Validate\IsString\minLength\Exception
Dsheiko\Validate\IsString\maxLength\Exception
Dsheiko\Validate\IsEmail\Exception
with a message like
Parameter "email" validation failed: "jon#snow.i.." is not a valid email address
Parameter "password" validation failed: "123" is too short; must be more than 6 chars
Map Validation
Exception messages look like:
Property "email" validation failed: "jon#snow.i.." is not a valid email address
All versions of validate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package dsheiko/validate contains the following files
Loading the files please wait ....