conedevelopment / vies-php
The VIES API PHP SDK.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 1
pkg:composer/conedevelopment/vies-php
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-02-13 07:37:17 UTC
README
This is the contract for Vies on-the-Web endpoints. The checkVat service supports exact and approximate matching at the same time. In order to retrieve the requestIdentifier, the information about requesterMemberStateCode and requesterNumber have to be provided.
Installation
Requirements
- PHP 8.1+.
Composer
composer require conedevelopment/vies-php
Then run composer install
Usage
use Cone\Vies\Client; use Cone\Vies\Model\CheckVatRequest; use Throwable; $client = new Client; try { $response = $client->api()->checkVatNumber(new CheckVatRequest([ 'countryCode' => 'HU', 'vatNumber' => '12345678', ])); // Handle response } catch (Throwable $e) { // Handle exception, report to Sentry etc... }
API Endpoints
All URIs are relative to https://ec.europa.eu/taxation_customs/vies/rest-api
| Class | Method | HTTP request | Description |
|---|---|---|---|
| PublicApi | checkStatus | GET /check-status | Check the status of each member states |
| PublicApi | checkVatNumber | POST /check-vat-number | Check a Vat Number for a specific country |
| PublicApi | checkVatTestService | POST /check-vat-test-service | Test the check vat service |