2017 © Pedro Peláez
 

library vat-client

Client library for the VIES/EU web service.

image

evertharmeling/vat-client

Client library for the VIES/EU web service.

  • Tuesday, June 13, 2017
  • by evertharmeling
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,158 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 40 % Grown

The README.md

VATClient

Latest Stable Version Build Status, (*1)

This libray supports validating a vat number and getting the info about a taxable object. The library uses the http://www.controleerbtwnummer.nl/ API to retrieve the info and validation. The http://www.controleerbtwnummer.nl/ API relies on the VIES/EU service and thus supports VAT numbers from all EU-countries., (*2)

Installation

composer require evertharmeling/vat-client, (*3)

Usage

It's required to use a PSR-7 supported HTTPClient like guzzle (^6.0) to inject in the Client., (*4)

$client = new VIESApi\Client\Client(new GuzzleHttp\Client(), VIESApi\Parser\VATParser());

try {
    $taxableObject = $client->getInfo('<VATNumber>');

    var_dump($taxableObject);
catch (TaxableObjectNotFoundException $e) {
    // VAT number not found
}

Roadmap

  • Formatter, add formatter who according to the regexes defined in the validator, formats the VAT number

The Versions

13/06 2017

dev-master

9999999-dev https://github.com/evertharmeling/vat-client

Client library for the VIES/EU web service.

  Sources   Download

MIT

The Requires

 

The Development Requires

api client vies vat open data controleerbtwnummer

13/06 2017

dev-develop

dev-develop https://github.com/evertharmeling/vat-client

Client library for the VIES/EU web service.

  Sources   Download

MIT

The Requires

 

The Development Requires

api client vies vat open data controleerbtwnummer

13/06 2017

1.0.1

1.0.1.0 https://github.com/evertharmeling/vat-client

Client library for the VIES/EU web service.

  Sources   Download

MIT

The Requires

 

The Development Requires

api client vies vat open data controleerbtwnummer

11/06 2017

1.0.0

1.0.0.0 https://github.com/evertharmeling/vat-client

Client library for the VIES/EU web service.

  Sources   Download

MIT

The Requires

 

The Development Requires

api client vies vat open data controleerbtwnummer