This package can be used to check whether a given VAT number is valid. All checkes are made through regular expressions. No API is used, as opposed to many other packages.
Currently support for all european countries.
This application is still in development and could implement breaking changes. Please use at your own risk.
You can install the package with composer
composer require justijndepover/simple-vat-checker
Use the validate
method to check whether the given VAT number is valid or not.
use Justijndepover\SimpleVatChecker\VatChecker;
VatChecker::validate('BE0123456789'); // returns a boolean
If you find any security related issues, please open an issue or contact me directly at [email protected].
If you wish to make any changes or improvements to the package, feel free to make a pull request.
The MIT License (MIT). Please see License File for more information.