aqayepardakht/http
Composer 安装命令:
composer require aqayepardakht/http
包简介
README 文档
README
is a PHP HTTP client that makes it easy to send HTTP requests
Installing Http
The recommended way to install Http is through Composer.
composer require aqayepardakht/http
How To Use
$client = new Aqayepardakht\Http\Client(); $client->get('example.com', [ 'test' => 'test', ]); $client->post('example.com', [ 'test' => 'test', ]); // Send Paramas $client->appendParams([ 'test2' => 'test2', ]); // Append Just One Param $client->appendParam('key', 'value'); // Empty Params And Set $client->setParams([ 'test4' => 'test4', 'test5' => 'test5' ]); // Remove Param $client->delParam('key'); // Empty Headers And Set $client->setHeaders('key'); // Append Just One Header $client->appendHeader('key', 'value'); $client->getUrl(); $client->setUrl('example.com'); // Set Bearer Token Header $client->withToken('token');
统计信息
- 总下载量: 986
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-12-19