PHP code example of billingserv / uk-vat-validator

1. Go to this page and download the library: Download billingserv/uk-vat-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/ */

    

billingserv / uk-vat-validator example snippets


use VatValidator\VatValidatorService;

$vatService = app(VatValidatorService::class);
$result = $vatService->verifyVatNumber('553557881');
print_r($result);

$consultation = $vatService->getConsultationNumber('553557881', '948561936944');
print_r($consultation);
sh
php artisan vendor:publish --tag=config