PHP code example of burtds / laravel-vatnumber-checker
1. Go to this page and download the library: Download burtds/laravel-vatnumber-checker 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/ */
burtds / laravel-vatnumber-checker example snippets
use Burtds\VatChecker\Facades\VatChecker
$validVatNumber = '0749617582' // Vulpo BV's VAT number
// returns a raw response of the European Commission's API
VatChecker::getRawVatInstance('BE', $validVatNumber);
// returns the validity of a VAT number
VatChecker::isVatValid('BE', $validVatNumber);
// returns the company name related to the VAT number
VatChecker::getCompanyName('BE', $validVatNumber);
// returns the company address related to the VAT number
VatChecker::getCompanyAddress('BE', $validVatNumber);
$validVatNumber = 'BE0749617582' // Vulpo BV's VAT number
// returns a raw response of the European Commission's API
VatChecker::getRawVatInstance($validVatNumber);
// returns the validity of a VAT number
VatChecker::isVatValid($validVatNumber);
...
use Burtds\VatChecker\Rules\VatNumber;
$validatedData = $request->validate([
'vat_number' => ['
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.