slince / shopify-api-php

:rocket: Shopify API Client for PHP
MIT License
128 stars 47 forks source link

Conflict with latest guzzlehttp/guzzle:7.0.1 #88

Closed shresthanimish closed 3 years ago

shresthanimish commented 3 years ago

The latest version of laravel (v8.0) requires guzzlehttp/guzzle:7.0.1. However, slince/shopify-api-php only satisfiable upto 6.x.

Problem 1

rafi73 commented 3 years ago

Facing the similar issue with Laravel 8! Did you find any solution for this?

shresthanimish commented 3 years ago

Yes. I found out that Laravel 8 doesn't necessarily require Guzzle 7.x. V6.5 works just as well. So the trick here is to have both versions available in composer. Here is the entry I have to fix the issue:

"guzzlehttp/guzzle": "^6.5|^7.0.1",

Edit the relevant line in composer.json in your laravel project with above. All the best.

rafi73 commented 3 years ago

Thanks a lot for your prompt reply 🙏

shresthanimish commented 3 years ago

No problem. Hope that helped.

rafi73 commented 3 years ago

`$ composer require slince/shopify-api-php Using version ^2.5 for slince/shopify-api-php ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.`

Facing this situation

shresthanimish commented 3 years ago

Looks like you might have previously installed guzzle 7.2 which is now in your compose.lock file. You can try copying your compose.lock file outside of your project for backup. Then remove it from your project and run composer install.