A PHP client for elasticsearch.

Fork me on GitHub


Latest Stable Version codecov.io Total Downloads 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 6.x is tested with PHP 7.0 and later.

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.