2017 © Pedro Peláez
 

library laravel-elasticsearch

A Laravel Service Provider for the Elasticsearch API client

image

shift31/laravel-elasticsearch

A Laravel Service Provider for the Elasticsearch API client

  • Sunday, March 5, 2017
  • by shift31
  • Repository
  • 15 Watchers
  • 194 Stars
  • 274,079 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 47 Forks
  • 2 Open issues
  • 35 Versions
  • 3 % Grown

The README.md

Laravel Elasticsearch Service Provider (4.5.0)

Latest Stable Version Total Downloads Build Status Coverage Status License, (*1)

This is a Laravel (4.2) Service Provider for the official Elasticsearch low-level client., (*2)

Version Matrix

Since there are breaking changes in Elasticsearch versions, your version of Elasticsearch must match the version of this library, which matches the version of the Elasticsearch low-level client., (*3)

Shift31/laravel-elasticsearch Elasticsearch Laravel
0.4 <= 0.90.* 4.2
1.0, 2.0 >= 1.0 4.x, 5.x
4.0 <= 0.90.* 4.2
4.1 >= 1.0 <= 2.0 4.2
4.2 >= 2.0 <= 5.0 4.2
4.5 >= 5.0 4.2
5.0 <= 0.90.* 5.x
5.1 >= 1.0 <= 2.0 5.x
5.2 >= 2.0 <= 5.0 5.x
5.5 >= 5.0 5.x

Attention: Until we launch new versions please keep using old stable versions (which are created as a branch) and don't use dev-master branch!, (*4)

Usage

  1. Run composer require shift31/laravel-elasticsearch:~4.5.0, (*5)

  2. Publish config file, (*6)

Laravel artisan command, (*7)

$ php artisan config:publish shift31/laravel-elasticsearch 

You can always read config parameters with:, (*8)

\Config::get('shift31::elasticsearch');

Note: The keys of this array should be named according the parameters supported by Elasticsearch\ClientBuilder., (*9)

  1. In the 'providers' array in app/config/app.php, add 'Shift31\LaravelElasticsearch\ElasticsearchServiceProvider'., (*10)

  2. Use the Es facade to access any method from the Elasticsearch\Client class, for example:, (*11)

$searchParams['index'] = 'your_index';
$searchParams['size'] = 50;
$searchParams['body']['query']['query_string']['query'] = 'foofield:barstring';
$result = Es::search($searchParams);

Default Configuration

If you return an empty array in the config file, Service provider merges default config with custom config variables. For custom config file question please see this elastic search configuration page., (*12)

Default config file which is publishing by artisan command., (*13)

Contributing

Please see CONTRIBUTING.md., (*14)

The Versions

05/03 2017

4.5.x-dev

4.5.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/03 2017
05/03 2017

4.2.x-dev

4.2.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/03 2017
05/03 2017

4.1.x-dev

4.1.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/03 2017

v4.1.2

4.1.2.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/03 2017

4.0.x-dev

4.0.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/03 2017

v4.0.2

4.0.2.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

28/02 2017

2.0.x-dev

2.0.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

28/02 2017

2.0.5

2.0.5.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

28/02 2017

v4.0.1

4.0.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

28/02 2017

v4.1.1

4.1.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

28/02 2017

v4.2.1

4.2.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

27/02 2017

dev-master

9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

27/02 2017

v4.5.0

4.5.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

27/02 2017

v4.2.0

4.2.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

27/02 2017

v4.1.0

4.1.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

27/02 2017

v4.0.0

4.0.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

14/02 2017

2.0.4

2.0.4.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

14/08 2016

2.0.3

2.0.3.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

The Development Requires

by Shift 31 Consulting

05/08 2016

2.0.2

2.0.2.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

0.4.x-dev

0.4.9999999.9999999-dev

A Laravel 4 Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

0.4.1

0.4.1.0

A Laravel 4 Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

1.0.x-dev

1.0.9999999.9999999-dev

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

1.3.5

1.3.5.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

2.0.1

2.0.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

29/07 2016

2.0

2.0.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

10/08 2015

1.3.4

1.3.4.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

10/08 2015

1.3.3

1.3.3.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

04/01 2015

1.3.2

1.3.2.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

04/01 2015

1.3.1

1.3.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

04/01 2015

1.3

1.3.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

04/01 2015

1.2

1.2.0.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

04/01 2015

1.1.1

1.1.1.0

A Laravel Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting

15/05 2014

v1.1

1.1.0.0

A Laravel 4 Service Provider for the Elasticsearch API client

  Sources   Download

The Requires

 

by Shift 31 Consulting