PHPackages                             ocramius/ocra-elastic-search - 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. [API Development](/categories/api)
4. /
5. ocramius/ocra-elastic-search

AbandonedArchivedLibrary[API Development](/categories/api)

ocramius/ocra-elastic-search
============================

Elastic search Module for Zend Framework 2 applications based on Doctrine's ObjectManager

20523[3 issues](https://github.com/Ocramius/OcraElasticSearch/issues)PHP

Since Jul 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Ocramius/OcraElasticSearch)[ Packagist](https://packagist.org/packages/ocramius/ocra-elastic-search)[ RSS](/packages/ocramius-ocra-elastic-search/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a7dc14bb304dfba065239ab060f26fdbf0b8d8b3809e558a61084056c1f7d6a7/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4f6372616d6975732f4f637261456c61737469635365617263682e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Ocramius/OcraElasticSearch) [![Dependency Status](https://camo.githubusercontent.com/10e483b8557ef3df9614089b1b0f3a622fd6ddb2e09a22a30ad4bbdb0203a8f3/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7061636b6167652f7068702d2d6f6372616d6975732d2d6f6372612d656c61737469632d7365617263682f62616467652e706e67)](https://www.versioneye.com/package/php--ocramius--ocra-elastic-search)

OcraElasticSearch Module
========================

[](#ocraelasticsearch-module)

**WIP**: this library is under heavy development - use it at your own risk until I tag a stable release!

This library is a small integration layer between Zend Framework 2, Doctrine's Object managers (ORM/ODM being equally supported) and ElasticSearch.

It uses Elastica as an adapter to communicate with the ElasticSearch server, and can handle runtime conversion of any mapped POPO to an ElasticSearch document. It also provides logic to fetch ElasticSearch documents and look them up in the currently configured ObjectManager

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

[](#installation)

Typical installation method is through [composer](https://getcomposer.org/):

```
php composer.phar require ocramius/ocra-elastic-search:1.0.*
```

The basic working concept can be summarized in the following graph:

!\[OcraElasticSearch basic working concept\]([http://yuml.me/diagram/scruffy;/class/\[ObjectManager\]writes-&gt;\[ElasticSearch\]](http://yuml.me/diagram/scruffy;/class/%5BObjectManager%5Dwrites-%3E%5BElasticSearch%5D), \[ElasticSearch\]reads-&gt;\[ObjectManager\], \[Zend Framework 2\]consumes-&gt;\[ObjectManager\], \[Zend Framework 2\]consumes-&gt;\[ElasticSearch\].svg)

Documentation
-------------

[](#documentation)

Please refer to the [`docs/`](https://github.com/Ocramius/OcraElasticSearch/tree/master/docs) directory to get started

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd0445bc21fa116c259b5889377b90cbd8a34d49357321f76a74f6d2c2ae6b0c?d=identicon)[Ocramius](/maintainers/Ocramius)

---

Top Contributors

[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (8 commits)")[![FabianKoestring](https://avatars.githubusercontent.com/u/1252701?v=4)](https://github.com/FabianKoestring "FabianKoestring (1 commits)")

### Embed Badge

![Health badge](/badges/ocramius-ocra-elastic-search/health.svg)

```
[![Health](https://phpackages.com/badges/ocramius-ocra-elastic-search/health.svg)](https://phpackages.com/packages/ocramius-ocra-elastic-search)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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