mwojtowicz/gusclient
Composer 安装命令:
composer require mwojtowicz/gusclient
包简介
GUS companies database API client
README 文档
README
1. Installation
composer require mwojtowicz/gusclient
2. Usage
Each client is instance of GusClientInterface, which has one method find.
Find method accepts as input strings or array of strings.
Before using this library you have to register your user key. After you'll be able to put it as constructor argument.
You can either pass this key as environment variable GUSAPI_KEY.
If you won't pass it as constructor argument (it's optional) library will look at environment variable.
Code usage:
<?php $nipClient = new MWojtowicz\GusClient\NIPClient(<GUS_API_USER_KEY>); $regonClient = new MWojtowicz\GusClient\RegonClient(<GUS_API_USER_KEY>); $krsClient = new MWojtowicz\GusClient\KrsClient(<GUS_API_USER_KEY>); $company = $nipClient->find('1234567890'); $companies = $nipClient->find(['1234567890', '9876054321']); $company = $regonClient->find('1234567890'); $companies = $regonClient->find(['1234567890', '9876054321']); $company = $krsClient->find('1234567890'); $companies = $krsClient->find(['1234567890', '9876054321']);
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-11