PHP Classes
elePHPant
Icontem

VAT Checker: Check if a European VAT number is valid

Recommend this page to a friend!

  Author Author  
Picture of Benjamin Boigienman
Name: Benjamin Boigienman <contact>
Classes: 3 packages by
Country: France France
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Benjamin Boigienman  >  VAT Checker  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: VAT Checker
Base name: vatchecker
Description: Check if a European VAT number is valid
Version: 1.0.0
PHP version: -
License: GNU General Public License (GPL)
 
  Groups   Trackback   Applications   Related pages   Files Files  

  Groups  
Group folder image Localization Internationalization and translations View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Finances Money, exchanging, taxes and stocks View top rated classes
Group folder image Validation Validation algorithms View top rated classes


  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

  Pages that reference this package  
Forms Widgets and Validation
This article will cover some of the things you’ll need to know if you’re thinking of building your own E-Commerce/Shopping Cart solution. I’ll be covering stuff like Credit/Debt Card Validation, UK Postcode Validation, UK Telephone Validation and UK County Selection...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.


  Related pages  
VIES VAT number validation
VIES VAT number validation

  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

Install with Composer Install with Composer - Download Download all files: vatchecker.tar.gz vatchecker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.