Laravel 4 Service Provider for Elastica

0.1 2014-10-09 23:07 UTC


Build Status

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


Require laravel-elastica in composer.

composer require srtfisher/laravel-elastica:0.*

Add it to your providers in config/app.php


Add it to your aliases:

'Ef' => 'bodeezy\LaravelElastica\LaravelElasticaFacade'

Okay, you would be good to go.


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 bodeezy/laravel-elastica

The configuration will be passed to the client constructor. Information on Elastica configuration can be found at