triadev / LaravelElasticsearchProvider by triadev

A laravel service provider for the elasticsearch php client.
531
1
2
Package Data
Maintainer Username: triadev
Maintainer Contact: christopher.lorke@gmx.de (Christopher Lorke)
Package Create Date: 2017-05-03
Package Last Update: 2019-01-12
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-15 15:09:21
Package Statistics
Total Downloads: 531
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

LaravelElasticsearchProvider

Software license Travis Coveralls CodeCov

Scrutinizer Code Quality Code Coverage Build Status

Latest stable Latest development Monthly installs Total Downloads

A laravel service provider for the elasticsearch php client: https://github.com/elastic/elasticsearch-php

Supported laravel versions

Laravel 5.6 Laravel 5.6 Laravel 5.7

Supported elasticsearch versions

Elasticsearch 6.0 Elasticsearch 6.1 Elasticsearch 6.2 Elasticsearch 6.3 Elasticsearch 6.4

Installation

Composer

composer require triadev/laravel-elasticsearch-provider

Application

The package is registered through the package discovery of laravel and Composer.

https://laravel.com/docs/5.7/packages

Once installed you can now publish your config file and set your correct configuration for using the package.

php artisan vendor:publish --provider="Triadev\Es\Provider\ElasticsearchServiceProvider" --tag="config"

This will create a file config/triadev-elasticsearch.php.

Configuration

| Key | Env | Value | Description | Default | |:-------------:|:-------------:|:-------------:|:-----:|:-----:| | hosts | ELASTICSEARCH_HOSTS | STRING | Hosts | localhost | | retries | ELASTICSEARCH_RETRIES | INTEGER | operation retries | 3 |

Example: hosts

Delimiter for different hosts: | (pipe)

http://localhost:9200/|https://username:password!#$?*abc@foo.com:9200/

Reporting Issues

If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.

Alternatively, fork the project and make a pull request. :)

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Credits

Other

Project related links

Author

License

The code for LaravelElasticsearchProvider is distributed under the terms of the MIT license (see LICENSE).