omnistate / vies
Omnistate VIES: EU VAT numbers checked with the European Commission's VIES (REST - no SOAP extension needed), with a consultation number as proof.
No longer found in upstream repository
Requires
- php: >=8.2
- glitchr/omnistate: ^1.0@dev
- symfony/http-client-contracts: ^3.0
Requires (Dev)
- phpunit/phpunit: ^11.0
- symfony/http-client: ^6.4|^7.0|^8.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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().