Search by

Omnistate VIES: EU VAT numbers checked with the European Commission's VIES (REST - no SOAP extension needed), with a consultation number as proof.

dev-main 2026-09-29 15:20 UTC
No longer found in upstream repository

This package is auto-updated.

Last update: 2026-10-01 14:21:37 UTC


README

EU VAT numbers checked with the European Commission's VIES, for glitchr/omnistate. Its REST API: no SOAP extension needed.

$check = (new Vies($httpClient))->check('FR53901821074', requester: 'FR...');
$check->valid;               // true
$check->name;                // "SARL GLITCH ART"
$check->consultationNumber;  // the proof you checked it that day - keep it with a reverse-charge invoice

A member state's service down (MS_UNAVAILABLE, they have their hours) throws UnavailableException: it is not a number that does not exist. Numbers are checked for their shape first by Omnistate::vat().