Skip to content

guci0/vat-validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vat Validation

About

Vat-Validation is a PHP class allowing you to

  • Validate a VAT number
  • Retrieve information like the name or the address of the company

The data is extracted from a European Commission webservice

It actually only works for European countries

Usage

require_once('vatValidation.class.php');
$vatValidation = new vatValidation( array('debug' => false));
$vatValidation->check($countryCode, $vatNumber));

Your instance can now access the following methods:

$vatValidation->isValid()
$vatValidation->getName()
$vatValidation->getDenomination()
$vatValidation->getAddress() 

You'll find an example in the example.php file

Requirements

PHP with Soap enabled

Disclaimer

Take a look at http://ec.europa.eu/taxation_customs/vies/viesdisc.do to know when/how you're allowed to use this service and his information

About

Verify the validity of a VAT number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published