PHP code example of jfernando / php-validate

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

    

jfernando / php-validate example snippets


    $schema = Schema::schema([
        'name'    => Schema::string()->min(3)->max(80),
        'address' => Schema::schema([
            'street' => Schema::string()->min(3)->max(50)
            'number' => Schema::numeric(['code' => 'invalid_number', 'message' => 'Invalid number']),
            'other' => Schema::string()->