PHP code example of jbohme / vat-validator

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

    

jbohme / vat-validator example snippets




$cnpj = legal_person_document('BR', "48.300.733/0001-78");
// or
$cpf = natural_person_document('BR', "550.371.510-15");