PHP client for the vatcheckapi.com
API.
- Website:
https://vatcheckapi.com/
composer require vatcheckapi/vatcheckapi-php
<?php
use VatCheckApi\Client;
$client = new Client('YOUR_API_KEY');
// Check a VAT number
$res = $client->check(['vat_number' => 'DE123456789']);
var_dump($res);
// Get API status
$status = $client->status();
var_dump($status);
Header-based by default (apikey: <key>
). To send the key as a query parameter instead:
$client = new Client('YOUR_API_KEY', [ 'auth_method' => 'query' ]);
check(array $params = []): array
status(): array
MIT