elastic/transport
HTTP transport PHP library for Elastic products
v9.0.1
26M downloads/mo
#570 most downloaded on Packagist
elastic/elastic-transport-php
What this package is like to depend on
Last release 1 years ago
08 May 2025
Release timing varies
gaps range from 8 days to 9 months
Nearly every release is documented
notes for 18 of 20 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
24 releases · first in 2021
0 releases in the last 12 months
see the full history below
Release timeline
24 releases · Mar 2021 to May 2025Releases
latest 24-
v9.0.108 May 2025Release notes
Open source →Fixed a missing dependency of nyholm/psr7, moved from
require-devtorequire. -
v9.0.010 Apr 2025Release notes
Open source →This is a new major release that includes the following change:
- We added a new custom HTTP client based on cURL. This client is used when
elastic-transport-phpdoes not detect any installed PSR-18 clients. This client relies on the cURL php extension that must be installed. Moreover, this client does not implement the HttpAsyncClient interface, which means you won't be able to send asynchronous requests.
If you need support for asynchronous requests, consider installing a PST-18 HTTP client like Guzzle:
composer require guzzlehttp/guzzle
composer require symfony/http-client
We introduced this change to remove the guzzle dependency in elasticsearch-php, as discussed here.
Other than that, no BC breaks have been introduced in the 9.0.0 release.
- We added a new custom HTTP client based on cURL. This client is used when
-
v8.11.002 Apr 2025Release notes
Open source →This release introduces the following changes and fixes:
- Added
Node::getLastPingandNode::getFailedPingsfor custom NodePool implementations with ping backoffs #35 - Add HTTP network exception as previous exception to
NoNodeAvailableExceptionfor debugging #34 - Fixed PHP 7.4+ issue - "must not be accessed before initialization" in
getLastRequest()andgetLastResponse()#33 - Fixed missing response body with guzzle PSR-7 streams #30
Release notes
Open source →- Added Node::getLastPing and Node::getFailedPings for custom NodePool implementations with ping backoffs #35
- Add HTTP network exception as previous exception to NoNodeAvailableException for debugging #34
- Fixed PHP 7.4+ issue - "must not be accessed before initialization" in getLastRequest() & getLastResponse() #33
- Fixed missing response body with guzzle psr7 streams #30
- Added
-
v8.10.014 Aug 2024Release notes
Open source →Added the support for OpenTelemetry
We introduced in #27 and 2be33cd the support of OpenTelemetry for the HTTP send request. At the moment, the support is only for synchronous HTTP call.
To enable the OpenTelemetry you need to set the ENV variable
OTEL_PHP_INSTRUMENTATION_ELASTICSEARCH_ENABLEDto true.We added the support natively in the
Transport:sendRequest()function. By default, the Transport create a span from a Tracer provider (e.g. Global) with the following attributes:http.request.method url.full server.address server.portIf the
$requestsent usingTransport::sendRequest($request)is a PSR-7 ServerRequest we get the attribute with nameotel-elastic-transportand we pass to the OTel span as additional attributes. In this way, libraries likeelasticsearch-phpcan inject specific OTel attributes (e.g.db.operation.name).We created an OpenTelemetry class to provide all the configuration.
Release notes
Open source → -
v8.8.008 Nov 2023Release notes
Open source → -
v8.7.023 May 2023Release notes
Open source →This release contains the following new feature:
- Allow installation of psr/http-message v2.0 #17
-
v8.6.011 Jan 2023Release notes
Open source → -
v8.5.014 Oct 2022Release notes
Open source →This release contains the following fix:
- Fixed the full body message in debug() log for Transport #11
Release notes
Open source →- Release created to be compatible with 8.5 Elastic clients
- Fixed the full body message in debug() log for Transport #11
-
v8.4.017 Aug 2022 -
v8.3.027 Jun 2022 -
v8.2.022 Jun 2022 -
v8.1.012 Apr 2022 -
v8.0.130 Mar 2022Release notes
Open source →- Support of
psr/logv1, 2 and 3 to fix the dependency withelasticsearch/elasticsearch. a413687
- Support of
-
v8.0.024 Mar 2022 -
v8.0.0-rc408 Mar 2022 pre-releaseNothing published for this version
-
v8.0.0-rc326 Feb 2022 pre-releaseNothing published for this version
-
v8.0.0-rc223 Feb 2022 pre-releaseNothing published for this version
-
v8.0.0-rc117 Feb 2022 pre-releaseNothing published for this version
-
v7.17.003 Jun 2022Nothing published for this version
-
v7.16.014 Dec 2021 -
v7.15.001 Dec 2021 -
v7.14.003 Aug 2021 -
v7.13.025 May 2021 -
v7.12.0beta110 Mar 2021Nothing published for this version