srtfisher / laravel-elastica by srtfisher

Laravel 4 Service Provider for Elastica
158
7
2
Package Data
Maintainer Username: srtfisher
Maintainer Contact: hi@seanfisher.co (Sean Fisher)
Package Create Date: 2014-10-09
Package Last Update: 2015-02-28
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:11:07
Package Statistics
Total Downloads: 158
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 7
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

Elastica for Laravel 4

Build Status

This is a Laravel 4 Service Provider for the Elastica Elasticsearch Client

Installation

Require laravel-elastica in composer.

composer require srtfisher/laravel-elastica:0.*

Add it to your providers in config/app.php

'Srtfisher\LaravelElastica\LaravelElasticaServiceProvider'

Add it to your aliases:

'Es' => 'Srtfisher\LaravelElastica\LaravelElasticaFacade'

Okay, you would be good to go.

Configuration

You can use the default configuration to connect to your localhost:9200 server. Or you could publish the configuration and change the server.

$ php artisan config:publish srtfisher/laravel-elastica

The configuration will be passed to the client constructor. Information on Elastica configuration can be found at http://elastica.io/getting-started/installation.html.