PHP code example of rocketfellows / hr-vat-format-validator

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

    

rocketfellows / hr-vat-format-validator example snippets


$validator = new HRVatFormatValidator();
$validator->isValid('12345678912');
$validator->isValid('HR99999999999');

$validator = new HRVatFormatValidator();
$validator->isValid('999999999999');
$validator->isValid('9999999999');
$validator->isValid('DE99999999999');