2017 © Pedro Peláez
 

library elasticsearch-module

Elasticsearch Module for Zend Framework

image

myprysm/elasticsearch-module

Elasticsearch Module for Zend Framework

  • Wednesday, July 30, 2014
  • by myprysm
  • Repository
  • 4 Watchers
  • 11 Stars
  • 10,854 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Elasticsearch Module for Zend Framework 2

1. Installation

As easy as it can be with Composer, just run the following command :, (*1)

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

Or add this line to your composer.json file in the require section :, (*2)

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

Then update your composer dependencies, (*3)

php <composer.phar> update

2. Configuration

First add the module to your application's requirements :, (*4)

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

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, (*6)

The full list of configurations is accessible here, (*7)

3. Use

A client instance can easily be retrieved through service manager :, (*8)

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

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

The Versions

30/07 2014

dev-master

9999999-dev

Elasticsearch Module for Zend Framework

  Sources   Download

BSD-3-Clause

The Requires

 

elasticsearch zf2 client