A simple client for VIES.
- PHP >= 7.4 (with soap support)
$ composer require pemedina/checkvat
The library can be included & used on any PHP application.
<?php
use CheckVat\checkVat as Vat;
use CheckVat\checkVatService;
require __DIR__ . '/vendor/autoload.php';
$service = new checkVatService();
$param = new Vat;
$param->countryCode='ES';
$param->vatNumber='B78917457';
$result = $service->checkVat( $param);
var_dump ( $result);
Found a bug or missing a feature? Don't hesitate to create a new issue here on GitHub.