PHP code example of amit-patel / hmrc-vat-validator
1. Go to this page and download the library: Download amit-patel/hmrc-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/ */
amit-patel / hmrc-vat-validator example snippets
use AmitPatel\HmrcVatValidator\Facades\HmrcVatValidator;
public function validateVat()
{
$response = HmrcVatValidator::validateVat('123456789');
return response()->json($response);
}
Route::get('/validate-vat', [YourController::class, 'validateVat']);
bash
php artisan vendor:publish --tag=config