vatcheckapi / vatcheckapi-php
PHP client for the vatcheckapi.com API (check, status)
dev-master
2025-10-02 11:06 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.8
This package is not auto-updated.
Last update: 2025-10-03 09:16:46 UTC
README
vatcheckapi-php
PHP client for the vatcheckapi.com
API.
- Website:
https://vatcheckapi.com/
Installation
composer require vatcheckapi/vatcheckapi-php
Quickstart
<?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);
Authentication
Header-based by default (apikey: <key>
). To send the key as a query parameter instead:
$client = new Client('YOUR_API_KEY', [ 'auth_method' => 'query' ]);
API
check(array $params = []): array
status(): array
License
MIT