ibericode / vat

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

Format #13

Open artur-gajewski opened 6 years ago

artur-gajewski commented 6 years ago

By giving a country code and business id, a function could return a VAT ID formatted to international format.

Examples:

format('FI', '1234567-1') would return FI12345671 format('SE', '556697-6009') would return SE556697600901

dannyvankooten commented 6 years ago

I like this idea @artur-gajewski. Will take a while before I have time to take a stab at it though, PR's are welcome & appreciated!