orphans/elasticsearch

Provides elasticsearch Facade for Laravel 5.

Installs: 60

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/orphans/elasticsearch

dev-master 2015-11-10 10:24 UTC

This package is not auto-updated.

Last update: 2025-10-12 00:41:33 UTC


README

Laravel 5.1 Service Wrapper and Facade for elasticsearch/elasticsearch.

Installation

Add the following to your composer.json file:

{
    "require" : {
        "orphans/elasticsearch" : "dev-master"
    }
}

Then install/update your composer project as normal.

Add the following line to you providers in config/app.php:

Orphans\ElasticSearch\App\Providers\ElasticSearchServiceProvider::class,

Add the following line to you facades in config/app.php:

'ES' => Orphans\ElasticSearch\Support\Facades\ElasticSearch::class,

Usage

To customise your elasticsearch config, publish the package config to your config folder:

php artisan vendor:publish

In your controllers, just include the following:

use ES;

And you can then do queries as normal using the facade:

$response = ES::search($params);