New

The executive guide to generative AI

Read more

Installation

edit

Elasticsearch-php only has a three requirements that you need to worry about:

  • PHP 7.0.0 or higher
  • Composer
  • ext-curl: the Libcurl extension for PHP (see note below)
  • Native JSON Extensions (ext-json) 1.3.7 or higher

The rest of the dependencies will automatically be downloaded and installed by Composer. Composer is a package and dependency manager for PHP. Installing elasticsearch-php with Composer is very easy

Libcurl can be replaced

The default HTTP handlers that ship with Elasticsearch-php require the PHP libcurl extension, but it is not technically required for the client to operate. If you have a host that does not have libcurl installed, you can use an alternate HTTP handler based on PHP streams. Performance will suffer, as the libcurl extension is much faster

Was this helpful?
Feedback