influxdb-client-php icon indicating copy to clipboard operation
influxdb-client-php copied to clipboard

Depend on PSR-18 instead of Guzzle.

Open tarjei opened this issue 3 years ago • 2 comments

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.

tarjei avatar Apr 06 '22 09:04 tarjei

Hi @tarjei,

thanks for using our client.

Is this something you might be willing to help with?

Regards

bednar avatar Apr 06 '22 09:04 bednar

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

tarjei avatar Apr 06 '22 09:04 tarjei

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:

  • https://github.com/influxdata/influxdb-client-php/pull/129
  • https://github.com/influxdata/influxdb-client-php/blob/generic-http-client/CHANGELOG.md#300-unreleased
  • https://github.com/influxdata/influxdb-client-php/blob/generic-http-client/README.md#custom-http-client

Regards

bednar avatar Sep 06 '22 09:09 bednar