getbrevo / brevo-php

A fully-featured PHP API client to interact with Brevo.
https://developers.brevo.com/
MIT License
51 stars 23 forks source link

Allow Guzzle v6? #10

Open stefandoorn opened 1 year ago

stefandoorn commented 1 year ago

Hi,

The package requires a minimum of PHP 5.x, but Guzzle 7 is required which has a minimum of PHP 7.2:

Dropped PHP 5 support—the minimum PHP version is now 7.2

I'm on a project where Guzzle 6 is still used, which fits better with the PHP version constraint in this package. I don't think there's any major changes, especially in the way the package is used here - so maybe this package can be opened up for v6 as well?

ayman-benmada commented 11 months ago

Hello,

I use the sylius framework which has guzzle 6 as a dependency, so it's impossible for me to install brevo, consequently I still have to use sendinblue which is no longer maintained, can we please have a version compatible with guzzle 6.

sylius/sylius[v1.12.0-alpha.1, ..., 1.12.x-dev] require guzzlehttp/guzzle ^6.5

teiling88 commented 6 months ago

Hey @stefandoorn and @ayman-benmada, we had the same issue so we forked the repo and added the older guzzle Version. Feel free to use it: https://packagist.org/packages/playox/brevo-php#dev-main @ayman-benmada the newest sylius version 1.13 has an updated guzzle dependency. Maybe that is a solution for you as well.