n0nag0n/easy-curl
最新稳定版本:v1.0.5
Composer 安装命令:
composer require n0nag0n/easy-curl
包简介
A simple wrapper library to make it easy to work with cURL (and to stop you from googling all the curl_setopt() you need)
README 文档
README
This is a super simple library to interact with curl.
Install with composer cause that's what all the cool kids use these days.
composer require n0nag0n/easy-curl
Basic Usage
<?php include('/path/to/vendor/autoload.php'); use n0nag0n\EasyCurl; echo EasyCurl::getRequest('https://www.google.com/'); $result = EasyCurl::postRequest('https://example.com/v1/endpoint', [ 'is_json_request' => true, 'post_body' => '{"json":"values"}' ]);
Check out the file on your own for documenation. It's pretty dang simple.
统计信息
- 总下载量: 86
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-24