PHP Classes
elePHPant
Icontem

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 (12 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 2,189 All time: 1,745 This week: 604Up
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: 35
All time rank: 14310 in France France
Week rank: 305 Down13 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,189
This week:0
All time:1,745
This week:604Up
User Ratings User Comments (2)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:478
 
new Url.
9 years ago (Bertl)
70%StarStarStarStar
Saved me alot of work.
6 years ago (Carsten Schmitz)
67%StarStarStarStar