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    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,218 This week: 1All time: 1,761 This week: 560Up
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
Picture of Benjamin Boigienman
Name: Benjamin Boigienman <contact>
Classes: 3 packages by
Country: France France
Age: 42
All time rank: 14611 in France France
Week rank: 416 Down17 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  
 0%
Total:2,218
This week:1
All time:1,761
This week:560Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:967
 
new Url.
15 years ago (Bertl)
70%StarStarStarStar
Saved me alot of work.
12 years ago (Carsten Schmitz)
67%StarStarStarStar