2017 © Pedro Peláez
 

library elasticsearch

Provides elasticsearch Facade for Laravel 5.

image

orphans/elasticsearch

Provides elasticsearch Facade for Laravel 5.

  • Tuesday, November 10, 2015
  • by orphans
  • Repository
  • 2 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

elasticsearch

Laravel 5.1 Service Wrapper and Facade for elasticsearch/elasticsearch., (*1)

Installation

Add the following to your composer.json file:, (*2)

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

Then install/update your composer project as normal., (*3)

Add the following line to you providers in config/app.php:, (*4)

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

Add the following line to you facades in config/app.php:, (*5)

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

Usage

To customise your elasticsearch config, publish the package config to your config folder:, (*6)

php artisan vendor:publish

In your controllers, just include the following:, (*7)

use ES;

And you can then do queries as normal using the facade:, (*8)

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

The Versions

10/11 2015

dev-master

9999999-dev

Provides elasticsearch Facade for Laravel 5.

  Sources   Download

MIT

The Requires