Skip to content

Verify check digits in VAT around the world to verify that not only the format is correct but that the number itself is also valid (it might not be assigned but is valid according to the check digit algorithm).

License

Notifications You must be signed in to change notification settings

rvelhote/libvat

Repository files navigation

Travis CI Code Climate Codacy Badge

Validate VAT Numbers

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).

Supported Countries

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

Thank you

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! :)

About

Verify check digits in VAT around the world to verify that not only the format is correct but that the number itself is also valid (it might not be assigned but is valid according to the check digit algorithm).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages