PHP code example of bespin / datavalidation-vatid
1. Go to this page and download the library: Download bespin/datavalidation-vatid 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/ */
bespin / datavalidation-vatid example snippets
use Bespin\DataValidation;
if (DataValidation\VatId::verify('xxx', DataValidation\Country::Germany)) {
echo 'xxx is a valid vatId';
} else {
echo 'xxx is not a valid vatId';
}