Lue dans les fichiers PHP du paquet au commit 146a5fd92821 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.
ViesclassThe European Commission's VIES: every member state's VAT register behind one door. Its REST API - no SOAP extension needed. Given your own VAT number, it answers a consultation number: the proof you checked your client's number that day, to keep with a reverse-charge invoice.
4 methods · 1 constant
Omnistate\Vies
Vies class
final class Vies implements VatRegistryInterface Vies.php:24
The European Commission's VIES: every member state's VAT register behind one door. Its REST API - no SOAP extension needed. Given your own VAT number, it answers a consultation number: the proof you checked your client's number that day, to keep with a reverse-charge invoice.
VIES only relays: a member state's service down (they have their hours) is not a number that does not exist - that is an UnavailableException. A check VIES refuses (a requester it does not accept...) is an OmnistateException: only VIES's "valid" says whether a number exists.
const URL = 'https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-number'
Vies::__construct()
public function __construct(readonly HttpClientInterface $http, readonly float $timeout = 10)Vies::name()
public function name(): stringVies::supports()
public function supports(string $number): boolVies::check()
public function check(string $number, ?string $requester = null): VatCheck