Skip to content
Advertisement

Composer dependency not met for large package [closed]

I am needing to install a package into my Laravel project. I am using the latest version of Laravel (8), It comes preinstalled with;

"guzzlehttp/guzzle": "^7.0.1"

When I go to install the new package, I get an error saying that it is not compatible with my project. When I check the composer.json file for the package, it give the following as a dependency;

"guzzlehttp/guzzle": "~6.0"

I need this package to continue with my project. What would be the best way to deal with this?

Advertisement

Answer

Laravel v8 requires Guzzle v7. It is not compatible with Guzzle v6. If any package you want to use does not yet support Guzzle v7, you cannot use that package in your Laravel project – unless you downgrade Laravel to v7.

Updating the package from Guzzle v6 to v7 might not be that easy, as the list of breaking changes is not that short. But the maintainer of the package you want to use is surely pretty thankful if you provide a pull request to his repository

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement