influxdata / influxdb-client-php

InfluxDB (v2+) Client Library for PHP
https://influxdata.github.io/influxdb-client-php/
MIT License
150 stars 47 forks source link

Depend on PSR-18 instead of Guzzle. #120

Closed tarjei closed 2 years ago

tarjei commented 2 years ago

Proposal: When working on projects that use many different external APIs, depending on a concrete version of one http library can become a problem. It would help a lot if influx-client-php could depend on PSR-18 instead so that the concrete version of the library could vary more.

Current behavior: Today the library depends on a given Guzzle version.

Desired behavior: The guzzle dependencies switched to depending on http/common instead. See Mailguns PHP lib for an example.

Use case: When working on projects that use many different external APIs, depending on a concrete version of one http library can become a problem. We are still running Guzzle 6.x and may have to do busywork just to use influxdb-client-php.

bednar commented 2 years ago

Hi @tarjei,

thanks for using our client.

Is this something you might be willing to help with?

Regards

tarjei commented 2 years ago

@bednar I'm sorry, but not at the moment no :)

bednar commented 2 years ago

Hi @tarjei,

We are preparing a new major version of the client (v3.0.0) which add supports for custom HTTP clients. Please try the preview version by:

composer require influxdata/influxdb-client-php:generic-http-client

For more info about new major version see:

Regards