Download the PHP package crtl/validation without Composer
On this page you can find all versions of the php package crtl/validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package validation
Validation Framework
Feature Requirements
- Easy to use
- Easy to extend
- Basic functionality
Installation
Usage
Built In Rules
- required
- boolean
- number
- float
- int
- min
[value, exclusive:bool=false]
- max
[value, exclusive:bool=false]
- string
- length
- minLength
[value, exclusive:bool=false]
- maxLength
[value, exclusive:bool=false]
- array
- count
- maxCount
[value, exclusive:bool=false]
- minCount
[value, exclusive:bool=false]
- ip
- ipv6
- ipv4
- alnum
- digit
- mac
- domain
- url
- pattern
- equals
[value, strict:bool=false]
Define Custom Validation Rules
To define custom validation rules you can either implement the
Crtl\Validation\RuleInterface
or the
Crtl\Validation\SingleInstanceRuleInterface
.
The Crtl\Validation\SingleInstanceRuleInterface
will be only instantiated once.
Errors
Errors can be retrieved by calling Crtl\Validation\Validator::getErrors
.
Errors are resetted by calling Crtl\Validation\Validator::validate
.
Crtl\Validation\Validator::getErrors
returns an array with the following format:
All versions of validation with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package crtl/validation contains the following files
Loading the files please wait ....