halasz/ares

提供从捷克共和国的ARES数据库中通过标识号获取主题信息。

v1.2.5 2021-11-21 19:00 UTC

README

Downloads this Month Latest stable Coverage Status

更多信息请见 变更日志

需要 guzzle/guzzle 6.1+ 和 php 5.5+。如果你使用的是 php < 5.5,请使用旧版本 [v1.0.7],它可以工作但不会使用 guzzle。

到项目的安装

安装 halasz/ares 的最佳方式是使用 Composer

$ composer require halasz/ares

通过客户的IN下载客户信息

示例

$ares = new halasz\Ares\Ares();
try {
    $response = $ares->loadData('87744473');
    /* @var $response halasz\Ares\Data */
    var_dump($response);
} catch (halasz\Ares\IdentificationNumberNotFoundException $e) {
    // log identification number, why is bad? Or make nothing.
}