有大佬遇到過這個問題嗎
環(huán)境 win/linux 在win和linux上都是這個錯誤。
安裝包 composer require guzzlehttp/guzzle
composer require guzzlehttp/guzzle
配置
"php": ">=7.2", "workerman/webman-framework": "^1.2.7", "guzzlehttp/guzzle": "^7.4"
代碼
報錯
Http::get($url) 這個是laravel里封裝的
如果是guzzle的話可以這樣用
$client = new \GuzzleHttp\Client(); $client->get($url)->getBody()->getContents();
這樣是可以的 多謝了 大胸弟。