PHP code example of rocketfellows / be-vat-format-validator
1. Go to this page and download the library: Download rocketfellows/be-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 / be-vat-format-validator example snippets
$validator = new BEVatFormatValidator();
$validator->isValid('BE0123456789');
$validator->isValid('0123456789');
$validator = new BEVatFormatValidator();
$validator->isValid('BE01234567890');
$validator->isValid('BE012345678');
$validator->isValid('BE123456789');
$validator->isValid('012345678');
$validator->isValid('01234567890');
$validator->isValid('123456789');
$validator->isValid('DE0123456789');