- 🇺🇸United States somebodysysop
I am running 9.5.2. I would like to install the OpenAI-PHP/Client package https://packagist.org/packages/openai-php/client which requires Guzzle 7.5. My current Guzzle (in Drupal) version is 6.5.8.0.
Does anyone know if there are any issues with installing Guzzle 7.50 at this point while still running Drupal 9.5.2 sites?
Thanks!
- 🇬🇧United Kingdom newaytech
I am hoping to install the Shopify PHP library for a microservices project - but get an issue with Guzzle versions:
- Root composer.json requires shopify/shopify-api ^4.2 -> satisfiable by shopify/shopify-api[v4.2.0].
- shopify/shopify-api v4.2.0 requires guzzlehttp/guzzle ^7.0 -> found guzzlehttp/guzzle[dev-master, 7.0.0-beta.1, ..., 7.5.x-dev (alias of dev-master)] but the package is fixed to 6.5.8 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.It would be great if we could get some guidance as to how to migrate safely toward Guzzle 7...
- 🇺🇸United States effulgentsia
It would be great if we could get some guidance as to how to migrate safely toward Guzzle 7
https://www.drupal.org/node/3268032 → links to https://www.drupal.org/docs/develop/using-composer/manage-dependencies#s... → .
- 🇺🇸United States effulgentsia
In addition to Guzzle, core-recommended also currently pins Laminas-feed to 2.17 whose composer.json does not allow PHP 8.2, but 2.19 does, so people wanting to install Drupal 9.5 on PHP 8.2 need to switch away from core-recommended in order to get Laminas-feed 2.19 or higher. We can't raise the laminas-feed requirement in core-recommended, because 2.19 also removed support for PHP 7.4.
Unlike the case with Guzzle 6/7, this prevents composer installation entirely with core-recommended 9.5 and PHP 8.2, which is a shame since in many cases the D9 site doesn't even need aggregator module enabled.
- 🇺🇸United States effulgentsia
For the laminas-feed issue, I opened 📌 Remove laminas-feed, laminas-escaper, and laminas-stdlib from drupal/core-recommended to allow Drupal 9.5 to be installed on PHP 8.2 Fixed . Not sure if that's a good solution, but perhaps it can spark other ideas?
- Status changed to Closed: won't fix
over 1 year ago 12:58am 14 July 2023 - 🇺🇸United States xjm
The remaining scope of this is no longer relevant since we're not going to be committing anything to D9 anymore (nor does D10 have Laminas dependencies). If we need core-recommended to do things that involve two-major constraints in the future, then we can open a new issue. Thanks!