snowcap/vat-validation

EU VAT number validation

Maintainers

Package info

github.com/snowcap/vat-validation

pkg:composer/snowcap/vat-validation

Statistics

Installs: 107 616

Dependents: 0

Suggesters: 0

Stars: 10

dev-master 2021-02-11 14:48 UTC

This package is not auto-updated.

Last update: 2026-03-10 12:54:41 UTC


README

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

See examples/example.php

Some available methods

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

Requirements

  • PHP 5.3>
  • Soap extension 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