TIN (纳税人识别号) 在线验证处理器

dev-master 2021-09-12 20:48 UTC

This package is auto-updated.

Last update: 2024-09-13 03:16:46 UTC


README

Build Status GitHub PHP from Travis config codecov

API 文档

https://evatr.bff-online.de/eVatR/xmlrpc/

API 开放时间 :D

德语

Über diese Schnittstelle können Sie sich täglich, in der Zeit zwischen 05:00 Uhr und 23:00 Uhr,
die Gültigkeit einer ausländischen Umsatzsteuer-Identifikationsnummer (USt-IdNr.) bestätigen lassen.

英语

Via this interface you can check the validity of a VAT identification numbers daily,
between 05:00 and 23:00 hours.

使用API的费用

德语

Die Nutzung der Schnittstelle ist durch keine Registrierung reglementiert, die Nutzung ist kostenfrei.

英语

The use of the interface is not regulated by any registration, the use is free of charge.

使用

$client = new Client();
$response = $client->verify(new Params([
    'UstId_1' => 'DE12345678',
    'UstId_2' => 'AT98765432',
]));
echo $response->isValid() ? 'succeed' : 'failed';

// $message = $response->getMessage();
// $details = $response->getDetails();

测试

$ ./vendor/bin/codecept run

静态分析器

$ ./vendor/bin/phpstan analyse src --level max

有用链接