osadchyi-s/incoming-curl
Composer 安装命令:
composer require osadchyi-s/incoming-curl
包简介
Make curl command line from incoming request
README 文档
README
This package for creating curl command line from incoming request data.
Install
Via Composer
$ composer require osadchyi-s/incoming-curl
Usage
Make current incoming curl from global data
$curlLine = IncomingCurl::makeCurlFromGlobals();
Make curl from custom data
$IC = new IncomingCurl(); $IC->setUrl('http://example'); $IC->setBody(json_encode(['test'=>1])); $IC->setHeaders([ [ 'Content-Type'=> ['appliation/json'] ] ]); $IC->setMethod('GET'); $curlLine = $IC->makeCurlCommandLine();
Credits
License
The GPL3 License. Please see License File for more information.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL3
- 更新时间: 2016-10-30