An open API service indexing awesome lists of open source software.

https://github.com/malja/eu_vat_validation

[Working][Not maintained] A PHP SoapClient wrapper class for validation of EU VAT numbers.
https://github.com/malja/eu_vat_validation

europe php soap-client vat-number

Last synced: about 1 month ago
JSON representation

[Working][Not maintained] A PHP SoapClient wrapper class for validation of EU VAT numbers.

Awesome Lists containing this project

README

          

# European VAT number validation
This project contains a PHP class for validation of VAT numbers.

## Usage
```php
try {
$validator = new EuVatValidation;
} catch( Exception $e) {
// SoapClient class does not exist
} catch( SoapFault $e) {
// Unable to contact server
}

// Check if this combination is valid
print_r( $validator->check("cz", "01234567") ); // Prints out "false"

// Shows array with additional info about trader with this VAT number
print_r( $validator->info( "sk", "") );
```

## Requirements
PHP and `SoapClient` ([manual](http://php.net/manual/en/class.soapclient.php)) is required.

## Legal notice
Script uses European Commission website for validation. See [this](http://ec.europa.eu/taxation_customs/vies/viesdisc.do) page for rules of usage.