1.通过composer 引入到项目中
composer require guzzlehttp/guzzle:~6.0
2.构建请求参数:
$data = array("name"=>"callback" , "value"=>"test"); $rescult = http_build_query($data);
输出:name=callback&value=test
3、参考文档:https://guzzle-cn.readthedocs.io/zh_CN/latest/quickstart.html