wpovernight/vat-number-validator

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP library to validate VAT numbers

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 7

pkg:composer/wpovernight/vat-number-validator

v2.0.0 2021-12-03 21:36 UTC

This package is not auto-updated.

Last update: 2025-05-18 12:51:05 UTC


README

PHP library to validate VAT numbers.

Installation

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.

Basic usage

To validate a VAT number:

use WPO\Component\VatNumberValidator\VatNumberValidator;

$validator = new VatNumberValidator;
$valid = $validator->validate('ATU37675002');

Origin

This library is the PHP rewrite of original JavaScript library by Braemoor Software Freebies. Original contributors are found here.

License

This library is under MIT License.