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.
- Host: GitHub
- URL: https://github.com/malja/eu_vat_validation
- Owner: malja
- License: mit
- Created: 2017-09-07T15:32:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T16:00:47.000Z (almost 9 years ago)
- Last Synced: 2024-02-23T22:45:26.275Z (over 2 years ago)
- Topics: europe, php, soap-client, vat-number
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.