This package is abandoned and no longer maintained. No replacement package was suggested.

A very simple but drop-in zf2 module for the elasticsearch client library.

1.0.1 2016-08-16 08:12 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:46:12 UTC


Latest Stable Version License

This repository contains a very simple but drop-in solution for using the elasticsearch client library in a ZF2 project.

The client is pre-configured with sensible defaults. You can further configure the client in the module config just as you would configure the elasticsearch client directly.

Usage example

$searchClient = $serviceLocator->get('elasticsearch');


Require the module via composer:

$ composer require enrise/zf-elasticsearch

Load the module in your application:

// config/application.config.php
return array(
    'modules' => array(
        // ...

And you're done!

Configuration example

To fine-tune your installation you can tweak the elasticsearch client configuration. For example:

// In your config file
return [
    'elasticsearch' => [
        'hosts' => [
        'logging' => true


  • elasticsearch/elasticsearch:^1.0


Please see the LICENSE file in this repository


This zend framework module was made by Richard Tuin.