This is a PHP library to check the validity of VAT numbers across Europe. Most of the PHP libraries I have seen only validate the country code and the number of characters or are just checking the VIES webservice.
This library will be validating each VAT number against the check digit that is embedded in each number which is much more complete and will ensure that the number is actualy valid (at least according to the checkdigit algorithm).
This PHP library is still very much a work in progress and I am adding tests and (as much as possible) finding documentation about each country and algorithm before proceeding to the next country.
- Albania (Still unfinished but mostly working)
- Argentina
- Australia
- Austria
- Belgium
- Canada
- Colombia
- Germany
- Luxembourg
- Norway
- Poland
- Portugal
- Slovenia
- Spain
- Sweden
I'm using the great JSVAT and python_stdnum libraries as inspiration and using them to confirm that my implementations are correct and also when I get stuck or can't find information about them. I will be contributing to them when I am more advanced in my own work. THANK YOU! :)