Navigation Menu

Skip to content

omusico/elasticsearch-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Module for Zend Framework 2

###1. Installation

As easy as it can be with Composer, just run the following command :

php <composer.phar> require myprysm/elasticsearch-module dev-master

Or add this line to your composer.json file in the require section :

"myprysm/elasticsearch-module": "dev-master"

Then update your composer dependencies

php <composer.phar> update

###2. Configuration

First add the module to your application's requirements :

In the file application.config.php, in the module section, add an "Elasticsearch" entry

All the options provided by the official Elasticsearch PHP API are supported. For more informations about Elasticsearch client configuration can be found on the official elasticsearch guide

The full list of configurations is accessible here

###3. Use

A client instance can easily be retrieved through service manager :

$client = $serviceManager->get("Elasticsearch\Client")

For more informations about the use of the PHP Elasticsearch client, get a look to the official documentation

About

ZF2 Wrapper for the official PHP Elasticsearch client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%