Skip to content

Releases: elastic/elasticsearch-php

Release 9.0.0

18 Apr 08:15
v9.0.0
5aa8b17
Compare
Choose a tag to compare

This is the new major release of elasticsearch-php compatible with Elasticsearch 9.0.0 🎉

  • Compatibility with Elasticsearch 9.0: All changes and additions to Elasticsearch APIs for its 9.0 release are reflected in this release.
  • Serverless client merged in: the elastic/elasticsearch-serverless client is being deprecated, and its functionality has been merged back into this client. This should have zero impact on the way the client works by default. If an endpoint is available in serverless, the PHP function will contains a @group serverless phpdoc attribute.
    If you try to use an endpoint that is not available in serverless you will get a 410 HTTP error with a message as follows:
    "this endpoint exists but is not available when running in serverless mode".
    The 9.0.0 client can recognize that it is communicating with a serverless instance if you are using a URL managed by Elastic (e.g. *.elastic.cloud).
    If you are using a proxy, the client will be able to recognize that the host is serverless from the first response. Alternatively, you can explicitly indicate that the host is serverless using the Client::setServerless(true) function (false by default).
  • New transport library with PSR-18 cURL client as default: we've removed the Guzzle dependency from the client. By default, the built-in cURL-based HTTP client will be used if no other PSR-18 compatible clients are detected. See release 9.0.0 of elastic-transport-php.

Breaking changes

  • Use of PHP 8.1+: Starting from 9.0.0 the elasticsearch-php client requires PHP 8.1+.

Deprecations

  • Utility::urlencode(): this function has been deprecated in favor of rawurlencode() of PHP (see #1278).

Release 8.17.1

28 Mar 15:48
v8.17.1
10af1f4
Compare
Choose a tag to compare

This release contains the following fix:

  • Fix and improvements for PHPStan (rule level 5) #1442 (thanks @AJenbo)

Release 6.8.4

17 Mar 14:43
v6.8.4
3fd8172
Compare
Choose a tag to compare

This release fixes the following issues:

  • Upgrade ezimuel/ringphp to 1.3.0 to support React Promise v3 for Elasticsearch #1430
  • Fixed implicitly nullable parameters being deprecated in PHP 8.4 notice issue #1420

Thanks to @MaelitoP and @dakujem for these fixes.

Release 8.17.0

18 Dec 11:22
v8.17.0
6cd0fe6
Compare
Choose a tag to compare
  • Updated the APIs to Elasticsearch 8.17.0

Release 8.16.0

14 Nov 23:01
v8.16.0
ab0fdb4
Compare
Choose a tag to compare
  • Updated the APIs to Elasticsearch 8.16.0
  • Added the support of PHP 8.4 #1415 (thanks @ruudk)

Release 8.15.0

14 Aug 14:38
v8.15.0
34c2444
Compare
Choose a tag to compare
  • Updated the APIs to Elasticsearch 8.15.0
  • Added the support of OpenTelemetry

Read the elastic-transport-php README for more information about OpenTelemetry support.

Release 8.14.0

12 Jun 20:01
v8.14.0
bff3c3e
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.14.0.

This release introduces 3 new APIs and 10 EXPERIMENTAL APIs.

Release 6.8.3

12 Apr 13:14
v6.8.3
a48d84b
Compare
Choose a tag to compare

This release contains the following fixes:

  • Allow PSR/2 #1154
  • Removed PHP 8 deprecation notice 3d2d852

Release 8.13.0

27 Mar 15:13
v8.13.0
221723e
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.13.0.

  • Added the mapTo($class) function to Elasticsearch response for mapping the result of ES|QL
    query to an object of stdClass or of a specific class #1398

This release introduces 6 new APIs and 6 EXPERIMENTAL APIs.

Release 8.12.0

26 Jan 15:07
v8.12.0
6f4a2ee
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.12.0.

This release has been tested with PHP 8.3, released on Nov 23, 2023.