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

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


$validator = new SEVatFormatValidator();
$validator->isValid('SE123456789012');
$validator->isValid('123456789012');

$validator = new SEVatFormatValidator();
$validator->isValid('SE12345678901');
$validator->isValid('SE1234567890123');
$validator->isValid('DE123456789012');
$validator->isValid('1234567890123');
$validator->isValid('12345678901');
$validator->isValid('');