European VAT Information Exchange System SOAP client

v1.0.4 2021-08-04 14:14 UTC


Latest Version on Packagist Build Status Quality Score

European VAT Information Exchange System SOAP client

This library is designed to handle validation trough VIES Soap WebService.

See for more information.


Install using Composer :

$ composer require prometee/vies-client


$loader = require_once( __DIR__.'/vendor/autoload.php');

use Prometee\VIESClient\Soap\Client\ViesSoapClient;
use Prometee\VIESClient\Helper\ViesHelper;

$viesSoapClient = new ViesSoapClient();

$viesHelper = new ViesHelper($viesSoapClient);

// Should print:
// 0: Invalid (Format is not ok or the Soap WebService
//    return isValid() === false
// 1: Format is ok, but we could not check the Soap WebService
//    because a network error occurred
// 2: Format is not OK, but the Soap WebService say it exists
//    (Could append if one day a new format is created,
//    like adding a new European country)
// 3: Format is ok and the VAT number exists