phore/http-client
最新稳定版本:v1.0.9
Composer 安装命令:
composer require phore/http-client
包简介
Http client library for fast api access
关键字:
README 文档
README
Easy to use http-client with fluent api.
Example
phore_http_request("http://localhost/test.php?case=200")->withMethod()
Request caching
Request Caching requires phore/cache package to be installed
$cache = new Cache(new ObjectStore(new FileSystemObjectStoreDriver("/tmp/cache1")));
$req = phore_http_request("http://localhost/")->withCache($cache)->send();
if ($req->isFromCache() === true)
echo "From Cache: " . $req->getBody();
Examples:
统计信息
- 总下载量: 8.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 12
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-03