PHP code example of facile-it / validoo
1. Go to this page and download the library: Download facile-it/validoo 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/ */
facile-it / validoo example snippets
namespace Foo;
use Validoo\Validator; // << Add this
...
$inputs = [
"field" => "alphanumeric string",
"field2" => "report-2016-12-20.csv",
];
$rules = [
"field" => "(); // print true