PackageTrack
Sign in Get early access

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 2025
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 24
  1. v9.0.1 08 May 2025
    Release notes

    Fixed a missing dependency of nyholm/psr7, moved from require-dev to require.

    Open source →
  2. v9.0.0 10 Apr 2025
    Release notes

    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-php does 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

    or Symfony HTTP Client:

    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.

    Open source →
  3. v8.11.0 02 Apr 2025
    Release notes

    This release introduces the following changes and fixes:

    • 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() and getLastResponse() #33
    • Fixed missing response body with guzzle PSR-7 streams #30

    Thanks to @gskema, @marcing and @shyim.

    Open source →
    Release notes
    • 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
    Open source →
  4. v8.10.0 14 Aug 2024
    Release notes

    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_ENABLED to 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.port
    

    If the $request sent using Transport::sendRequest($request) is a PSR-7 ServerRequest we get the attribute with name otel-elastic-transport and we pass to the OTel span as additional attributes. In this way, libraries like elasticsearch-php can inject specific OTel attributes (e.g. db.operation.name).

    We created an OpenTelemetry class to provide all the configuration.

    Open source →
    Release notes
    • Added the OpenTelemetry support #27
    • Refactored the OpenTelemetry using PSR-7 attributes 2be33cd
    Open source →
  5. v8.8.0 08 Nov 2023
    Release notes

    This release contains the following new features:

    • Support path in host connection URI #21

    • Support userInfo in host connection URI #22

    Open source →
    Release notes
    • Support path in host connection URI #21

    • Support userInfo in host connection URI #22

    Open source →
  6. v8.7.0 23 May 2023
    Release notes

    This release contains the following new feature:

    • Allow installation of psr/http-message v2.0 #17
    Open source →
    Release notes
    • Allow installation of psr/http-message v2.0 #17
    Open source →
  7. v8.6.0 11 Jan 2023
    Release notes

    This release contains the following new feature:

    • Add full request and response to the log message context for better integration using Clockwork #13
    Open source →
    Release notes
    • Add full request and response to the log message context for better integration using Clockwork #13
    Open source →
  8. v8.5.0 14 Oct 2022
    Release notes

    This release contains the following fix:

    • Fixed the full body message in debug() log for Transport #11
    Open source →
    Release notes
    • Release created to be compatible with 8.5 Elastic clients
    • Fixed the full body message in debug() log for Transport #11
    Open source →
  9. v8.4.0 17 Aug 2022
    Release notes

    Release created to be compatible with 8.4 Elastic clients.

    • Added meta header info for Symfony HTTP client #9
    • Added composer-runtime-api v2 for InstalledVersions #10
    Open source →
    Release notes
    • Release created to be compatible with 8.4 Elastic clients
    • Added meta header info for Symfony HTTP client #9
    • Added composer-runtime-api v2 for InstalledVersions #10
    Open source →
  10. v8.3.0 27 Jun 2022
    Release notes

    Release created to be compatible with 8.3 Elastic PHP clients.

    Open source →
    Release notes
    • Release created to be compatible with 8.3 Elastic clients
    Open source →
  11. v8.2.0 22 Jun 2022
    Release notes
    • Release created to be compatible with 8.2 Elastic clients
    Open source →
  12. v8.1.0 12 Apr 2022
    Release notes
    • Release created to be compatible with 8.1 Elastic clients
    Open source →
  13. v8.0.1 30 Mar 2022
    Release notes
    • Support of psr/log v1, 2 and 3 to fix the dependency with elasticsearch/elasticsearch. a413687
    Open source →
  14. v8.0.0 24 Mar 2022
    Release notes

    Finally, the 8.0.0 GA.

    Open source →
  15. v8.0.0-rc4 08 Mar 2022 pre-release

    Nothing published for this version

  16. v8.0.0-rc3 26 Feb 2022 pre-release

    Nothing published for this version

  17. v8.0.0-rc2 23 Feb 2022 pre-release

    Nothing published for this version

  18. v8.0.0-rc1 17 Feb 2022 pre-release

    Nothing published for this version

  19. v7.17.0 03 Jun 2022

    Nothing published for this version

  20. v7.16.0 14 Dec 2021
    Release notes

    Release created to be compatible with 7.16 Elastic clients

    Open source →
  21. v7.15.0 01 Dec 2021
    Release notes

    Release created to be compatible with 7.15 Elastic clients

    Open source →
  22. v7.14.0 03 Aug 2021
    Release notes

    Release created to be compatible with 7.14 Elastic clients

    Open source →
  23. v7.13.0 25 May 2021
    Release notes

    Release created to be compatible with 7.13 Elastic clients

    Open source →
  24. v7.12.0beta1 10 Mar 2021

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive