Installation

edit

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

  • PHP 5.4.0 or higher
  • Composer
  • ext-curl: the Libcurl extension for PHP (see note below)

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