PHP code example of atakde / php-validation
1. Go to this page and download the library: Download atakde/php-validation 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/ */
atakde / php-validation example snippets
use Atakde\PhpValidation\Validator;
$params = [
'username' => 'TestUsername',
'email' => '[email protected]',
'password' => '123'
];
$validateRules = [
'email' => 'validator->fails());
var_dump($validator->getErrors());
bash
composer