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

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


$validator = new ROVatFormatValidator();
$validator->isValid('RO12');
$validator->isValid('RO123');
$validator->isValid('RO1234');
$validator->isValid('RO12345');
$validator->isValid('RO123456');
$validator->isValid('RO1234567');
$validator->isValid('RO12345678');
$validator->isValid('RO123456789');
$validator->isValid('RO1234567890');
$validator->isValid('12');
$validator->isValid('123');
$validator->isValid('1234');
$validator->isValid('12345');
$validator->isValid('123456');
$validator->isValid('1234567');
$validator->isValid('12345678');
$validator->isValid('123456789');
$validator->isValid('1234567890');

$validator = new ROVatFormatValidator();
$validator->isValid('RO1');
$validator->isValid('1');
$validator->isValid('RO12345678901');
$validator->isValid('12345678901');