PHP code example of gaesi / validator

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

    

gaesi / validator example snippets

` php


use Gaesi\Validator\CPF;
use Gaesi\Validator\GS1;
use Gaesi\Validator\Mod11;

CPF::validate("12345678909");      // return true
GS1::validateGs1("1234567890123"); // return false
Mod11::calcule("111222333");       // return "1112223339"
Mod11::validate("1112223339");     // return true