yadakhov/curl
最新稳定版本:v1.1.0
Composer 安装命令:
composer require yadakhov/curl
包简介
A simple php curl wrapper class.
README 文档
README
A simple curl wrapper class to perform GET and POST.
Installation
Install from packagist
composer require yadakhov/curl
Or add to your composer.json
"require": {
"yadakhov/laradump": "^1.0"
},
The api interface.
public static getInstance();
public function get($url, array $params = []);
public function post($url, array $params = []);
Perform a GET request
$curl = new \Yadakhov\Curl; $curl->get('http://example.com');
Perform a POST request
$response = Curl::getInstance()->post('http://example.com', ['id' => '1']);
统计信息
- 总下载量: 330
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-06