承接 biganfa/php2curl 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

biganfa/php2curl

Composer 安装命令:

composer require biganfa/php2curl

包简介

tiny lib to convert data from PHP request to cURL command, thus importing PHP request to Postman

README 文档

README

Convert PHP request to raw cURL instantly. This tiny lib analyzes PHP globals ($_REQUEST, etc.) and creates identical cURL command out of it. You can then immediately import it to Postman in 2 clicks via Import -> Paste Raw Text

Possible use cases

  • importing web request from PHP code to plain cURL

  • importing web request from PHP code to Postman

  • cowboy style debugging while xdebug is not available (e.g. production)

  • trying to debug a microservice

  • sharing a request with a co-worker

  • so on

Examples

  • zero configuration! copy/paste single line, initiate web request, result will be found in $curl variable:
$curl = eval(file_get_contents('http://bit.ly/_php2curl')); // $curl variable contains the cURL command here
  • if you think eval is not acceptable, you can just copy the contents of generated/snippet.php and paste it anywhere in your project. $curl variable will hold the desired cURL command.

  • you can install the library as usual via composer (see example.php)

composer require biganfa/php2curl

Known limitations (pull requests are welcome!)

  • files are not supported

Tests

vendor/bin/phpunit

License information

see LICENSE file

统计信息

  • 总下载量: 2.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2019-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固