A PHP client for elasticsearch.

Fork me on GitHub


Latest Stable Version Coverage Status Dependency Status Total Downloads

Elastica.io is the documentation for Elastica, a PHP client for elasticsearch. Elastica is open source and you can download or clone the source code on Github from ruflin/Elastica.

These pages should give you an overview of how to use Elastica. You can find the complete API here. Any contributions to the documentations are highly welcome. Elastica.io is based on Octopress and is hosted on Github. Fork your copy from ruflin/Elastica.io and open a pull request.


The version numbers are consistent with elasticsearch. The version number means it is the first release for elasticsearch version 0.16.0. The next release is called As soon as the elasticsearch is updated and the client is updated, also the next version is called Like this it should be always clear to which versions the Elastica client is compatible.


Elastica is tested with PHP 5.4 and later. Most functionality still works with PHP 5.3 but future support is not guaranteed. It Versions prior and equal to v0.19.8.0 are compatible with PHP 5.2

File indexing

File upload is supported but the mapper attachement plugin has to be installed

./bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.9.0


Credits go to all users that gave feedback and committed code.