PHP code example of zean / validator

1. Go to this page and download the library: Download zean/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/ */

    

zean / validator example snippets



use Zean\Validator\Validator;

$rules = [
    'name' => 'e) > time();
    }
];

$data = [
    'name' => 'andy',
    'date'=>'2015-07-29'
];

$result = Validator::validate($data, $rules);