PHP code example of azi / envalid

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

    

azi / envalid example snippets


$validator = new azi\Validator();
$validator->validate($_POST, [
    'username'         => 'ame:password'
]);

$validator = new azi\Validator();
$validator->validate(array_merge($_POST, $_FILES), [
    'profile_picture' => 'file:image'
]);