ocramius / ocra-elastic-search
Elastic search Module for Zend Framework 2 applications based on Doctrine's ObjectManager
Requires
- php: >=5.3.3
- doctrine/collections: ~1.0
- doctrine/common: ~2.4
- ruflin/elastica: ~0.19
- zendframework/zend-console: ~2.1
- zendframework/zend-http: ~2.1
- zendframework/zend-modulemanager: ~2.1
- zendframework/zend-mvc: ~2.1
- zendframework/zend-servicemanager: ~2.1
- zendframework/zend-stdlib: ~2.1
Requires (Dev)
- pdepend/pdepend: ~1.1
- phploc/phploc: ~1.7
- phpmd/phpmd: ~1.4
- phpunit/phpunit: ~3.7
- squizlabs/php_codesniffer: ~1.4
This package is auto-updated.
Last update: 2019-02-20 19:28:05 UTC
README
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
Typical installation method is through composer:
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->[ElasticSearch], [ElasticSearch]reads->[ObjectManager], [Zend Framework 2]consumes->[ObjectManager], [Zend Framework 2]consumes->[ElasticSearch].svg)
Documentation
Please refer to the docs/
directory to
get started