PHP code example of yoshi2889 / validation-closures

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

    

yoshi2889 / validation-closures example snippets


$closure = \ValidationClosures\Types::string();

$is_string = $closure('This is a string');

// True
echo $is_string ? 'True' : 'False';

$closure = Reflection::implementsInterface(stdClass::class);