An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Travis CI](https://img.shields.io/travis/rvelhote/libvat.svg)](https://travis-ci.org/rvelhote/libvat)
[![Code Climate](https://img.shields.io/codeclimate/github/rvelhote/libvat.svg)](https://codeclimate.com/github/rvelhote/libvat/issues)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2a23466753b94690934c6988cb9b5a33)](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! :)