Skip to content

Commit 453b87e

Browse files
authored
Merge pull request #39 from candasm/elasticsearch_5.x_updates
Changes for elastic search 5.x.
2 parents 05fdcee + 6f867ef commit 453b87e

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
language: php
22

33
php:
4-
- 5.4
5-
- 5.5
64
- 5.6
5+
- 7.0
76

87
addons:
98
apt:
109
sources:
11-
- elasticsearch-2.4
10+
- elasticsearch-5.0
1211
packages:
1312
- elasticsearch
1413

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Laravel Elasticsearch Service Provider (4.2.0)
1+
Laravel Elasticsearch Service Provider (4.5.0)
22
================================================
33
[![Latest Stable Version](https://poser.pugx.org/shift31/laravel-elasticsearch/v/stable)](https://packagist.org/packages/shift31/laravel-elasticsearch)
44
[![Total Downloads](https://poser.pugx.org/shift31/laravel-elasticsearch/downloads)](https://packagist.org/packages/shift31/laravel-elasticsearch)
5-
[![Build Status](https://travis-ci.org/shift31/laravel-elasticsearch.svg?branch=4.2)](https://travis-ci.org/shift31/laravel-elasticsearch)
6-
[![Coverage Status](https://coveralls.io/repos/github/shift31/laravel-elasticsearch/badge.svg?branch=4.2)](https://coveralls.io/github/shift31/laravel-elasticsearch?branch=master)
5+
[![Build Status](https://travis-ci.org/shift31/laravel-elasticsearch.svg?branch=4.5)](https://travis-ci.org/shift31/laravel-elasticsearch)
6+
[![Coverage Status](https://coveralls.io/repos/github/shift31/laravel-elasticsearch/badge.svg?branch=4.5)](https://coveralls.io/github/shift31/laravel-elasticsearch?branch=master)
77
[![License](https://poser.pugx.org/shift31/laravel-elasticsearch/license)](https://packagist.org/packages/shift31/laravel-elasticsearch)
88

9-
This is a Laravel (4.2) Service Provider for the [official Elasticsearch low-level client](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/index.html):
9+
This is a Laravel (4.2) Service Provider for the [official Elasticsearch low-level client](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/5.0/index.html).
1010

1111
Version Matrix
1212
------------------
@@ -30,7 +30,7 @@ Attention: Until we launch new versions please keep using old stable versions (w
3030

3131
Usage
3232
-----
33-
1. Run `composer require shift31/laravel-elasticsearch:~4.2.0`
33+
1. Run `composer require shift31/laravel-elasticsearch:~4.5.0`
3434

3535
2. Publish config file
3636

@@ -42,7 +42,7 @@ You can always read config parameters with:
4242
```php
4343
\Config::get('shift31::elasticsearch');
4444
```
45-
Note: The keys of this array should be named according the parameters supported by [Elasticsearch\Client](https://github.com/elastic/elasticsearch-php/blob/0.4/src/Elasticsearch/Client.php).
45+
Note: The keys of this array should be named according the parameters supported by [Elasticsearch\ClientBuilder](https://github.com/elastic/elasticsearch-php/blob/5.0/src/Elasticsearch/ClientBuilder.php#L119).
4646

4747
3. In the `'providers'` array in app/config/app.php, add `'Shift31\LaravelElasticsearch\ElasticsearchServiceProvider'`.
4848

@@ -56,8 +56,8 @@ $result = Es::search($searchParams);
5656

5757
Default Configuration
5858
---------------------
59-
If you return an empty array in the config file, Service provider [merges default config with custom config variables](https://github.com/shift31/laravel-elasticsearch/blob/master/src/Shift31/LaravelElasticsearch/ElasticsearchServiceProvider.php#L27).
60-
For custom config file question please see [this](https://www.elastic.co/guide/en/elasticsearch/client/php-api/2.0/_configuration.html#_building_the_client_from_a_configuration_hash) elastic search configuration page.
59+
If you return an empty array in the config file, Service provider [merges default config with custom config variables](src/Shift31/LaravelElasticsearch/ElasticsearchServiceProvider.php).
60+
For custom config file question please see [this](https://www.elastic.co/guide/en/elasticsearch/client/php-api/5.0/_configuration.html#_building_the_client_from_a_configuration_hash) elastic search configuration page.
6161

6262
[Default config file](src/config/elasticsearch.php) which is publishing by artisan command.
6363

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
}
99
],
1010
"require": {
11-
"php": ">=5.4.0 <=7.0.0",
11+
"php": ">=5.6 <=7.1",
1212
"laravel/framework": "~4.2.0",
13-
"elasticsearch/elasticsearch": "~2.0"
13+
"elasticsearch/elasticsearch": "~5.0"
1414
},
1515
"require-dev": {
1616
"squizlabs/php_codesniffer": "^2.8",
17-
"phpunit/phpunit": "^4.8",
17+
"phpunit/phpunit": "^5.7",
1818
"mockery/mockery": "^0.9.8",
1919
"satooshi/php-coveralls": "^1.0",
2020
"orchestra/testbench": "^2.2",
@@ -32,7 +32,7 @@
3232
},
3333
"extra": {
3434
"branch-alias": {
35-
"dev-master": "4.2.x-dev"
35+
"dev-master": "4.5.x-dev"
3636
}
3737
},
3838
"scripts": {

phpunit.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</testsuite>
1919
</testsuites>
2020
<filter>
21-
<blacklist>
22-
<directory>./vendor/*</directory>
23-
</blacklist>
21+
<whitelist>
22+
<directory suffix=".php">./src/Shift31/LaravelElasticsearch</directory>
23+
</whitelist>
2424
</filter>
2525
<logging>
2626
<log type="coverage-clover" target="build/logs/clover.xml"/>

src/Shift31/LaravelElasticsearch/ElasticsearchServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ElasticsearchServiceProvider extends ServiceProvider
99
{
10-
const VERSION = '4.2.0';
10+
const VERSION = '4.5.0';
1111

1212
/**
1313
* @inheritdoc

0 commit comments

Comments
 (0)