PHP library to validate VAT numbers.
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
$ composer require wpovernight/vat-number-validator
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
To validate a VAT number:
use WPO\Component\VatNumberValidator\VatNumberValidator;
$validator = new VatNumberValidator;
$valid = $validator->validate('ATU37675002');
This library is the PHP rewrite of original JavaScript library by Braemoor Software Freebies. Original contributors are found here.
This library is under MIT License.