PHP Classes

VAT Checker: Check if a European VAT number is valid

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-05-04 (14 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 2,205 All time: 1,753 This week: 478Up
Version License Categories
vatchecker 1.0.0GNU General Publi...Localization, PHP 5, Web services, Fi..., V...
Description Author

This class can check whether an VAT (Value Added Tax) number is valid according to rules of each European country.

The class loads VAT number structure using regular expressions for each European country defined in a separate XML file.

If the given VAT number structure is correct, the class checks the VIES site (VAT Information Exchange System) to verify whether the VAT number is valid.

The class can present error messages in either English are French. Support for more idioms can add easily updating the error XML file.

Innovation Award
PHP Programming Innovation award nominee
May 2005
Number 6
VAT (Value Added Tax) is a tax that European companies have to charge when they sell products or services to clients in Europe.

When possible clients have to provide their VAT number to associate to the transactions about the products or services that they purchase from the European companies.

To avoid later problems it is important that the supplied VAT numbers are correct.

This class provides a solution to automatically validate VAT numbers, thus reducing the chances of any eventual problems.

Manuel Lemos
Name: Benjamin Boigienman <contact>
Classes: 3 packages by
Country: France France
Age: 37
All time rank: 14610 in France France
Week rank: 273 Down11 in France France Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file data_vat.xml Data Data file
Accessible without login Plain text file error_vat.xml Data Error file
Plain text file vatchecker_class.php Class Class
Accessible without login Plain text file vat_test.php Example Test

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,753
This week:478Up
User Ratings User Comments (2)
 All time
new Url.
11 years ago (Bertl)
Saved me alot of work.
7 years ago (Carsten Schmitz)