dev-master
9999999-dev http://github.com/cba85/eu-vat-validationA PHP component to verify the validity of a VAT number issued by any European Union Member State
MIT
The Requires
- php ~5.6|~7.0
The Development Requires
validation vat europe
A PHP component to verify the validity of a VAT number issued by any European Union Member State
A PHP package to verify the validity of a VAT number issued by any European Union Member State., (*1)
This package is basically calling web service provided by VIES for VAT number validation., (*2)
VIES API documentation : http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl, (*3)
This package allows you to : - validate a VAT number - retrieve information like the name or the address of the company, (*4)
A value added tax identification number or VAT identification number (VATIN) is an identifier used in many countries, including the countries of the European Union, for value added tax purposes., (*5)
Install using Composer :, (*6)
$ composer require cba85/eu-vat-validation dev-master
You must have PHP with Soap enabled., (*7)
$vatValidation = new Validation('FR12345678910'); /* * Check VAT */ $vat = $vatValidation->checkVat(); /* * Is VAT ID valid ? */ $valid = $vatValidation->isValid();
You'll find more examples in the example
folder., (*8)
Array ( [countryCode] => FR [vatNumber] => 12345678910 [requestDate] => 2016-12-19+01:00 [valid] => [name] => --- [address] => --- )
Array( [countryCode] => FR [vatNumber] => 12345678910 [requestDate] => 2016-12-19+01:00 [valid] => [traderName] => --- [traderCompanyType] => --- [traderAddress] => --- [requestIdentifier] => )
If TVA rates evolve, change the results expected., (*9)
$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/ValidationTest
A PHP component to verify the validity of a VAT number issued by any European Union Member State
MIT
validation vat europe