2017 © Pedro Peláez
 

library vat-validator

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.

image

toxicdigital/vat-validator

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.

  • Sunday, February 18, 2018
  • by vmanchev
  • Repository
  • 2 Watchers
  • 2 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

VAT validator

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service., (*1)

Prerequisites

  1. PHP version 7 and above.
  2. php7.x-soap extension

How to install

composer require "toxicdigital/vat-validator"

How to use


use Toxic\Validator\Vat as VatValidator;

$validator = VatValidator::getInstance();

//Returns true or false
$validator->isValid("XY123456789");

//If VAT number is valid, company info is available
$validator->getCompany();

/*
 * Toxic\Validator\Vat\Company Object
 * (
 *   [name] => John Doe
 *   [address] => 123 Main St, Anytown, UK
 *   [vatNumber] => 100
 *   [countryCode] => GB
 *   [valid] => true
 * )
 */

The Versions

18/02 2018

dev-master

9999999-dev

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • ext-soap *

 

by Venelin Manchev

18/02 2018

v1.1-stable

1.1.0.0

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • ext-soap *

 

by Venelin Manchev

18/02 2018

v1.0-stable

1.0.0.0

Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • ext-soap *

 

by Venelin Manchev