Skip to content

Commit

Permalink
Put some README information
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Hermans committed Jun 23, 2011
1 parent 9caf05c commit b20d47c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Vat Validation #

## About ##
Vat-Validation is a PHP class allowing you to
- Validate a VAT number
- Retrieve information like the name or the address of the company

The data is extracted from a European Commission webservice

__It actually only works for European countries__

## Usage ##

require_once('vatValidation.class.php');
$vatValidation = new vatValidation( array('debug' => false));
$vatValidation->check($countryCode, $vatNumber));

Your instance can now access the following methods:

$vatValidation->isValid()
$vatValidation->getName()
$vatValidation->getDenomination()
$vatValidation->getAddress()

You'll find an example in the example.php file

## Requirements ##

PHP with Soap enabled

## Disclaimer ##

Take a look at http://ec.europa.eu/taxation_customs/vies/viesdisc.do to know when/how you're allowed to use this service and his information

0 comments on commit b20d47c

Please sign in to comment.