1. Go to this page and download the library: Download pklink/validator-chain 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/ */
pklink / validator-chain example snippets
$chain = \Validation\Chain('check me');
$chain
->isString() // return instance of Chain
->isInteger() // return instance of Chain
->isArray() // return instance of Chain
;
$chain->isValid(); // return false
(new \Validation\Chain('check me'))
->isString()
->isInteger()
->isArray()
->isValid()