All Products
Search
Document Center

OpenSearch:PHP SDK for implementing the query or data push feature

Last Updated:Jun 23, 2026

OpenSearch SDK for PHP encapsulates API operations for application management, data processing, and searching. The SDK is continuously updated with new features and bug fixes.

Latest version

The latest version is V3.4.1, released in May 2021. We recommend that you upgrade to this version.

Version history

Only PHP 5.3 and later are supported. We recommend that you use PHP 5.4 or later.

V3.4.1 (2021-05-11)

  • Requests for the Management and Control API are discontinued.

Download URL

V3.3.0 (2020-04-21)

New features:

  • Temporary Security Token Service (STS) tokens are supported.

  • The Rank.secondRankType parameter for the search feature is added. Valid values: EXPRESSION and CAVA_SCRIPT.

  • The userId and reSearch parameters for the drop-down suggestion feature are added. The reSearch parameter can be set to HOMONYM.

  • The SuggestParams and SuggestionClient classes are added.

Download URL

V3.2.1 (2019-09-12)

Feature description:

  • Data collection 2.0 is supported.

  • HTTPS is supported.

  • The parameter passing issue in A/B tests is fixed.

Download URL

V3.2.0 (2019-08-23)

  • Data collection 2.0 is supported.

V3.1.0 (2018-09-03)

  • The A/B test feature is supported.

  • The collection of behavioral data is supported.

V3.0.2 (2017-11)

New features:

  • The document search feature is supported.

  • The drop-down suggestion feature is supported.

  • The query analysis feature is supported.

  • The scroll query feature is supported.

  • Cross-application queries are supported. In V3.x.x of OpenSearch SDK for PHP, use commas (,) to separate application names. In V2.x.x, use semicolons (;) to separate application names.

Compatibility:

  • Advanced and standard applications are supported.

Bug fixes:

  • The parameter name for specifying the number of drop-down suggestions was invalid.

  • The reRankSize parameter failed to be configured.

V3.0.1 (2017-07)

New features:

  • The document search feature is supported.

  • The drop-down suggestion feature is supported.

  • The query analysis feature is supported.

  • The scroll query feature is supported.

  • Cross-application queries are supported. In V3.x.x of OpenSearch SDK for PHP, use commas (,) to separate application names. In V2.x.x, use semicolons (;) to separate application names.

  • You must define the arg parameter before use. Otherwise, if the log level is set to Notice, the following error is returned: Undefined variable: arg.

Compatibility:

  • Advanced and standard applications are supported.

Feature enhancement:

  • The kvpairs clause is supported.

V3.0.0 (2017-05)

New features:

  • The document search feature is supported.

  • The drop-down suggestion feature is supported.

  • The query analysis feature is supported.

  • The scroll query feature is supported.

  • Cross-application queries are supported. In V3.x.x of OpenSearch SDK for PHP, use commas (,) to separate application names. In V2.x.x, use semicolons (;) to separate application names.

Compatibility:

  • Advanced and standard applications are supported.