https://github.com/rvelhote/libvat
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).
https://github.com/rvelhote/libvat
codeclimate docker php php-library phpunit travis-ci vat-number vat-validation vat-validator
Last synced: about 2 months ago
JSON representation
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).
- Host: GitHub
- URL: https://github.com/rvelhote/libvat
- Owner: rvelhote
- License: mit
- Created: 2016-11-19T20:43:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T23:04:56.000Z (over 8 years ago)
- Last Synced: 2025-01-23T20:33:57.628Z (3 months ago)
- Topics: codeclimate, docker, php, php-library, phpunit, travis-ci, vat-number, vat-validation, vat-validator
- Language: PHP
- Homepage:
- Size: 138 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/rvelhote/libvat)
[](https://codeclimate.com/github/rvelhote/libvat/issues)
[](https://www.codacy.com/app/rvelhote/libvat?utm_source=github.com&utm_medium=referral&utm_content=rvelhote/libvat&utm_campaign=Badge_Grade)# 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](http://www.braemoor.co.uk/software/vat.shtml) and [python_stdnum](https://github.com/arthurdejong/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! :)