https://guzzle-cn.readthedocs.io/zh_CN/latest Guzzlehttp
laravel 自带 GuzzleHttp\Client 包,可以用作post,get等http请求;
useGuzzleHttp\Client;
$http =newClient();
$url ='http://www.baidu.com';
$response = $http->get($url);
$data = json_decode((string);
$response->getBody(),true);
具体请查看GuzzleHttp官方文档