A PHP client for elasticsearch.

Fork me on GitHub


Latest Stable Version codecov.io Total Downloads Flattr this git repo Join the chat at https://gitter.im/ruflin/Elastica

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 gives 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.


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.