Download the PHP package pilou/eu-vat-id-validation without Composer
On this page you can find all versions of the php package pilou/eu-vat-id-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package eu-vat-id-validation
Getting Started
composer require pilou/eu-vat-id-validation
Options / Functions
__construct()
- param:
string
$vatId [optional]
setVatId()
- param:
string
$vatId - throws:
\Exception
Sets the current VAT-ID value and extracts the VAT-Number and the country code from it.
getVatId()
- return:
string
Gets the last set VAT-ID value.
toArray()
- return:
array
Gets the last set VAT-ID value and all associated details:
- VAT-ID
- VAT-Number
- Country code
- Is valid?
- Company name (not always available)
- Company address (not always available)
Example:
isValid()
- return:
boolean
- throws: '\Pilou\EuVat\ServiceUnavailableException'
Usage Examples
Check if passed VAT-ID is valid:
Check multiple VAT-ID's:
Display all VAT-ID details:
Using all public class functions:
All versions of eu-vat-id-validation with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package pilou/eu-vat-id-validation contains the following files
Loading the files please wait ....