filippo-toso/vat-api
Composer 安装命令:
composer require filippo-toso/vat-api
包简介
A simple class to get European VAT ID details (company name and address)
README 文档
README
A simple class to get European VAT ID details (company name and address).
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:
composer require filippo-toso/vat-api
If you are using Laravel < 5.5, you also need to register the service provider and the alias.
To do so, add the following row in the providers array of your config/app.php:
FilippoToso\VatApi\VatApiServiceProvider::class,
You should also add the following row in the aliases array of the same config/app.php file:
'Vat' => FilippoToso\VatApi\VatApiFacade::class,
Using It
The use is very simple:
$details = Vat::details('LU26375245');
This will return the following array:
[
[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
]
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-18