SkillAgentSearch skills...

EuVatValidator

PHP Class to validate European VAT numbers using VIES SOAP API

Install / Use

/learn @suikatech/EuVatValidator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

EuVatValidator

PHP Class to validate European VAT numbers using VIES SOAP API

This class makes the validation of European VAT Number easy. It perfoms some format validation and queries the SOAP API of the VIES website ( http://ec.europa.eu/taxation_customs/vies/?locale=en ).

How to use example

// Create an instance of the class
$euVATValidator = new EuVATValidator();
// Validate Vat Number
if ($euVATValidator->verifyVatNumber("VAT_NUMBER_TO_VALIDATE"))
{
	echo "Valid";
}
else
{
	echo "Invalid";
}

Test file

An example file demoEuVATValidator.php is included and can be used to test the class.

Licence

This class is released under the GPLv3 licence

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated6y ago
Forks3

Languages

PHP

Security Score

70/100

Audited on Aug 24, 2019

No findings