1. Go to this page and download the library: Download ava239/validator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
'_' // shape error
'age.positive' // age field, positive validation error
'name.ort field, series sub-field, ch expected data type it generates error with key "valid"
// it's applied for array, number, string validations
// if this error occurs no further validations will be performed for this field
'passport.sub._' // passport field, "sub" sub-field, shape error
'passport.sub.num.
array()
addValidator($type, $name, $validatorFunction)
array
$name
isValid($data)
array()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.