xentral / evatr-php
PHP SDK for the German BZSt eVATR API - EU VAT ID verification
Installs: 765
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/xentral/evatr-php
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-02-23 18:54:27 UTC
README
eVATR PHP
PHP SDK for the German BZSt eVATR API — verify EU VAT identification numbers.
Installation
composer require xentral/evatr-php
Usage
<?php use Xentral\EvatrPhp\EvatrClient; use Xentral\EvatrPhp\Request\ConfirmationQuery; $client = new EvatrClient(); // Simple query $result = $client->verifyVatId( ConfirmationQuery::simple('DE123456789', 'ATU12345678') ); echo $result->isValid(); // true/false // Qualified query (with company data comparison) $result = $client->verifyVatId( ConfirmationQuery::qualified('DE123456789', 'ATU12345678', 'Firma GmbH', 'Wien') ); $result->companyNameResult; // ComparisonResult::MATCH (A), MISMATCH (B), NOT_REQUESTED (C), NOT_PROVIDED (D) // List EU member states and VIES availability $states = $client->getMemberStates();
License
The MIT License (MIT). Please see License File for more information.
Credits
- Sanan Guliyev
- All contributors who have helped improve this package
