ibericode / vat

PHP library for dealing with European VAT
https://packagist.org/packages/ibericode/vat
MIT License
425 stars 61 forks source link

Add VAT modulus11 check for countries #41

Open gemal opened 3 years ago

gemal commented 3 years ago

some countries has a modulus 11 check build into the number The VAT validator should be able to check that

gemal commented 3 years ago

Do you accept pull requests?

gemal commented 2 years ago

@dannyvankooten would you accept pull request for this?

dannyvankooten commented 2 years ago

Hey @gemal,

Yes, definitely! Anything that could invalidate VAT numbers before sending a request off to the (sometimes somewhat unreliable) VIES API is encouraged, in my book. :+1:

Do you have a source on which countries have such a format? GB, from the looks of it?

gemal commented 2 years ago

possible code could be used from here: https://gist.github.com/svschannak/e79892f4fbc56df15bdb5496d0e67b85