Download the PHP package webiik/validator without Composer
On this page you can find all versions of the php package webiik/validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download webiik/validator
More information about webiik/validator
Files in webiik/validator
Download webiik/validator
More information about webiik/validator
Files in webiik/validator
Vendor webiik
Package validator
Short Description The Validator validates data against user-defined rules.
License MIT
Homepage https://www.webiik.com
Package validator
Short Description The Validator validates data against user-defined rules.
License MIT
Homepage https://www.webiik.com
Please rate this library. Is it a good library?
Informations about the package validator
Validator
The Validator validates data against user-defined rules.
Installation
Example
Adding Inputs For Validation
addInput
addInput() adds an input for validation.
Parameters
- input input value
- rules callable that return an array of validation rule objects
- name optional input name. This name is used as input index in validate() result.
- isRequired optional. Indicates if input is required or not. Empty optional inputs are always considered as valid.
Validation Rules
Write Custom Validation Rule
You can write your custom validation rule. The only thing you have to do is to implement implementation of RuleInterface to get better insight.
Available Validation Rules
Validating Inputs
validate
validate() validates all inputs and returns array of all invalid inputs sorted by input index.
Parameters
- testAllRules indicates if unfulfilled rule stops next rules checking
Resources
All versions of validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package webiik/validator contains the following files
Loading the files please wait ....