PHPackages                             enrise/zf-elasticsearch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. enrise/zf-elasticsearch

AbandonedArchivedLibrary[Search &amp; Filtering](/categories/search)

enrise/zf-elasticsearch
=======================

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

1.0.1(9y ago)64.5k4MITPHPPHP ^5.4 || ^7

Since Apr 4Pushed 3y ago10 watchersCompare

[ Source](https://github.com/Enrise/zf-elasticsearch)[ Packagist](https://packagist.org/packages/enrise/zf-elasticsearch)[ RSS](/packages/enrise-zf-elasticsearch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Archived and unmaintained
=========================

[](#archived-and-unmaintained)

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:
-----------------------------------

[](#original-readme-can-be-found-below)

ZF2 Elasticsearch Module
========================

[](#zf2-elasticsearch-module)

[![Latest Stable Version](https://camo.githubusercontent.com/189a36b394478cf8e6165d199c41cbd7182f7d2f8c0b3d507949378b96a8025c/68747470733a2f2f706f7365722e707567782e6f72672f656e726973652f7a662d656c61737469637365617263682f762f737461626c652e737667)](https://packagist.org/packages/enrise/zf-elasticsearch)[![License](https://camo.githubusercontent.com/a1efe8cbfb68b8d7435c9d24afa80a7ebced2599153b14719779f39ed6fbe215/68747470733a2f2f706f7365722e707567782e6f72672f656e726973652f7a662d656c61737469637365617263682f6c6963656e73652e737667)](https://packagist.org/packages/enrise/zf-elasticsearch)

This repository contains a *very* simple but drop-in solution for using the [elasticsearch client library](https://github.com/elastic/elasticsearch-php) 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](https://github.com/elastic/elasticsearch-php/blob/master/docs/configuration.asciidoc)directly.

Usage example
-------------

[](#usage-example)

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

Installation
------------

[](#installation)

Require the module via composer:

```
$ composer require enrise/zf-elasticsearch
```

Load the module in your application:

```
// config/application.config.php
return array(
    'modules' => array(
        // ...
        'Enrise\\ZfModule\\ElasticSearch',
    )
);
```

And you're done!

Configuration example
---------------------

[](#configuration-example)

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

```
// In your config file
return [
    'elasticsearch' => [
        'hosts' => [
            'es1.enrise.com',
            'es2.enrise.com'
        ],
        'logging' => true
    ]
];
```

Dependencies
------------

[](#dependencies)

- `elasticsearch/elasticsearch:^1.0`

License
-------

[](#license)

Please see the LICENSE file in this repository

Contributors
------------

[](#contributors)

This zend framework module was made by [Richard Tuin](https://github.com/rtuin).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~499 days

Total

2

Last Release

3563d ago

PHP version history (2 changes)1.0.0PHP ^5.4

1.0.1PHP ^5.4 || ^7

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/360150?v=4)[Richard Tuin](/maintainers/rtuin)[@rtuin](https://github.com/rtuin)

---

Top Contributors

[![rtuin](https://avatars.githubusercontent.com/u/360150?v=4)](https://github.com/rtuin "rtuin (2 commits)")[![eXistenZNL](https://avatars.githubusercontent.com/u/1150201?v=4)](https://github.com/eXistenZNL "eXistenZNL (1 commits)")

---

Tags

elasticsearchzf2Zend Framework

### Embed Badge

![Health badge](/badges/enrise-zf-elasticsearch/health.svg)

```
[![Health](https://phpackages.com/badges/enrise-zf-elasticsearch/health.svg)](https://phpackages.com/packages/enrise-zf-elasticsearch)
```

###  Alternatives

[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7431.6M2](/packages/matchish-laravel-scout-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

397612.3k](/packages/jeroen-g-explorer)[jsq/amazon-es-php

Support for using IAM authentication with the official Elasticsearch PHP client

9310.6M13](/packages/jsq-amazon-es-php)[babenkoivan/elastic-client

The official PHP Elasticsearch client integrated with Laravel

544.0M6](/packages/babenkoivan-elastic-client)[madewithlove/elasticsearcher

Wrapper on top of the ElasticSearch PHP SDK which allows easier index/document/query management.

264133.2k2](/packages/madewithlove-elasticsearcher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
