use Phpfastcache\Helper\Psr16Adapter;
$instagram = \InstagramScraper\Instagram::withCredentials(new GuzzleHttp\Client(), 'username', 'password', new Psr16Adapter('Files'));
$instagram->login();
$instagram->saveSession();
Error: Fatal error: Uncaught Error: Class 'GuzzleHttp\Client' not found in W:\domains\insta-api.com\index.php:7 Stack trace: #0 {main} thrown in W:\domains\insta-api.com\index.php on line 7
And me exist this problem
The guzzle dependency is missing. Jou can solve this by adding it using composer: composer require guzzlehttp/guzzle
install "composer require phpfastcache/phpfastcache" + "composer require guzzlehttp/guzzle" and successfully
Thx all!!
Most helpful comment
The guzzle dependency is missing. Jou can solve this by adding it using composer:
composer require guzzlehttp/guzzle