Php CodeIgniter找不到guzzlehttp
我正在使用CodeIgniter3和PHP5.7。 我使用以下命令添加composer guzzlehttp:Php CodeIgniter找不到guzzlehttp,php,codeigniter,Php,Codeigniter,我正在使用CodeIgniter3和PHP5.7。 我使用以下命令添加composer guzzlehttp: composer require guzzlehttp/guzzle:~6.0 在我的config.php中 在我的图书馆里我用 $client = new GuzzleHttp\Client(); 但结果是: 严重性:错误 消息:找不到类“GuzzleHttp\Client” 正在尝试以下代码: $client = new \GuzzleHttp\Client(); $clie
composer require guzzlehttp/guzzle:~6.0
在我的config.php中
在我的图书馆里我用
$client = new GuzzleHttp\Client();
但结果是:
严重性:错误
消息:找不到类“GuzzleHttp\Client”
正在尝试以下代码:
$client = new \GuzzleHttp\Client();
$client = new \GuzzleHttp\Client();