dcai/curl
最新稳定版本:0.2.2
Composer 安装命令:
composer require dcai/curl
包简介
A friendly curl wrapper for PHP.
README 文档
README
A PHP wrapper class to simplify PHP cURL Library.
How to use
Following code shows how to use this class
$http = new dcai\curl; // enable cache $http = new dcai\curl(array('cache'=>true)); // enable cookie $http = new dcai\curl(array('cookie'=>true)); // enable proxy $http = new dcai\curl(array('proxy'=>true)); // HTTP GET $response = $http->get('http://example.com'); // HTTP POST $response = $http->post('http://example.com/', array('q'=>'words', 'name'=>'moodle')); // POST RAW $xml = '<action>perform</action>'; $response = $http->post('http://example.com/', $xml); // HTTP PUT $response = $http->put('http://example.com/', array('file'=>'/var/www/test.txt');
统计信息
- 总下载量: 8.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2015-01-09