dominikangerer/php-easy-client
Composer 安装命令:
composer require dominikangerer/php-easy-client
包简介
DominikAngerer - Client to easily fetch and cache data
README 文档
README
Allow GET and POST Request from Guzzle combined with the caching from APIX
Install
composer require dominikangerer/php-easy-client
How to use
// initialize with domain
$client = new \DominikAngerer\Client('https://raw.githubusercontent.com');
// Optionally set a cache
$client->setCache('filesytem', array('path' => 'cache'));
// execute a get Request and get the Body
$client->get('/DominikAngerer/default-datasources/master/country-iso2.json', array('time' => time()));
$data = $client->getBody();
// access the headers
$headers = $client->getHeaders();
统计信息
- 总下载量: 89
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-02-14