2017 © Pedro Peláez
 

library vat-api

A simple class to get European VAT ID details (company name and address)

image

filippo-toso/vat-api

A simple class to get European VAT ID details (company name and address)

  • Sunday, February 18, 2018
  • by filippo.toso
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Vat API

A simple class to get European VAT ID details (company name and address)., (*1)

Requirements

  • PHP 5.6+
  • Laravel 5.0+
  • sunra/php-simple-html-dom-parser 1.5+
  • guzzlehttp/guzzle 6.2+

Installing

Use Composer to install it:, (*2)

composer require filippo-toso/vat-api

If you are using Laravel < 5.5, you also need to register the service provider and the alias., (*3)

To do so, add the following row in the providers array of your config/app.php:, (*4)

FilippoToso\VatApi\VatApiServiceProvider::class,

You should also add the following row in the aliases array of the same config/app.php file:, (*5)

'Vat'   => FilippoToso\VatApi\VatApiFacade::class,

Using It

The use is very simple:, (*6)

$details = Vat::details('LU26375245');

This will return the following array:, (*7)

[

    [valid] => TRUE
    [vat_id] => IT02861640304
    [name] => CREATIVE PARK DI FILIPPO TOSO
    [addresses] => [
        [0] => VIA DANTE 1/B
        [1] => 33057 PALMANOVA UD
    ]
    [address] => VIA DANTE 1/B 33057 PALMANOVA UD
    [error] => FALSE
]

The Versions

18/02 2018

dev-master

9999999-dev

A simple class to get European VAT ID details (company name and address)

  Sources   Download

MIT

The Requires

 

by Filippo Toso

18/02 2018

v1.0.3

1.0.3.0

A simple class to get European VAT ID details (company name and address)

  Sources   Download

MIT

The Requires

 

by Filippo Toso

18/02 2018

v1.0.2

1.0.2.0

A simple class to get European VAT ID details (company name and address)

  Sources   Download

MIT

The Requires

 

by Filippo Toso

18/02 2018

v1.0.1

1.0.1.0

A simple class to get European VAT ID details (company name and address)

  Sources   Download

MIT

The Requires

 

by Filippo Toso

18/02 2018

v1.0.0

1.0.0.0

A simple class to get European VAT ID details (company name and address)

  Sources   Download

MIT

The Requires

 

by Filippo Toso