PHP Classes

VAT Checker: Check if a European VAT number is valid

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 2,218 All time: 1,761 This week: 524Up
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: 43
All time rank: 14711 in France France
Week rank: 195 Down12 in France France Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,218
This week:0
All time:1,761
This week:524Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:970
 
new Url.
16 years ago (Bertl)
70%StarStarStarStar
Saved me alot of work.
13 years ago (Carsten Schmitz)
67%StarStarStarStar