1、 Guzzle的安装。
如果我们用PHP的依赖管理工具Composer安装的话比较大略。https://guzzle-cn.readthedocs.io/zh_CN/latest/overview.html#installation
{ "require": { "guzzlehttp/guzzle": "~6.0" }}composer install
2、 Guzzle的代码引入。

require_once 'vendor/autoload.php';
3、 Guzzle的利用。
$objClient = new GuzzleHttp\Client(['timeout' => self::MAX_TIMEOUT,]);$objResponse = $objClient->request($strMethod, $strUrl, $arrOption);$intCode = $objResponse->getStatusCode();$mixBody = $objResponse->getBody()->getContents();
4、HttpGuzzle封装类。
https://github.com/witer666/httpguzzle