Download the PHP package tox82/vatnumber-validator without Composer
On this page you can find all versions of the php package tox82/vatnumber-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tox82/vatnumber-validator
More information about tox82/vatnumber-validator
Files in tox82/vatnumber-validator
Download tox82/vatnumber-validator
More information about tox82/vatnumber-validator
Files in tox82/vatnumber-validator
Vendor tox82
Package vatnumber-validator
Short Description A simple VAT identification number validator, without any dependencies, NOT relying on the VIES service.
License GPL-3.0-or-later
Package vatnumber-validator
Short Description A simple VAT identification number validator, without any dependencies, NOT relying on the VIES service.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package vatnumber-validator
VAT validator
A formal VAT number validator
It's not a full validation tool, it just checks that the VAT number is formally valid: eg. 11 chars, digits only, etc. It's built using these rules:
- https://www.gov.uk/guidance/vat-eu-country-codes-vat-numbers-and-vat-in-other-languages
- https://en.wikipedia.org/wiki/VAT_identification_number
It requires PHP >= 7.0.
Installation:
Usage
Just load the VatNumber class and execute a check, passing the country code and VAT code as parameters, and it will return a boolean value. True for valid VAT number, false for invalid.
TODO
Add specific, more robust validation for each country, when available. Eg. check digits. prefixes, suffixes, etc.
Resources
All versions of vatnumber-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package tox82/vatnumber-validator contains the following files
Loading the files please wait ....