PHP code example of geekgroveofficial / php-smart-validator
1. Go to this page and download the library: Download geekgroveofficial/php-smart-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/ */
geekgroveofficial / php-smart-validator example snippets
use GeekGroveOfficial\PhpSmartValidator\Validator\Validator;
$data = [
'email' => '[email protected]',
'password' => 'secret'
];
$rules = [
'email' => ['($validator->errors());
}
bash
composer