| 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: | 2025-10-30 15:00:54 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 531 | 
| Monthly Downloads: | 0 | 
| Daily Downloads: | 0 | 
| Total Stars: | 1 | 
| Total Watchers: | 2 | 
| Total Forks: | 0 | 
| Total Open Issues: | 0 | 
A laravel service provider for the elasticsearch php client: https://github.com/elastic/elasticsearch-php
composer require triadev/laravel-elasticsearch-provider
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.
| Key | Env | Value | Description | Default | |:-------------:|:-------------:|:-------------:|:-----:|:-----:| | hosts | ELASTICSEARCH_HOSTS | STRING | Hosts | localhost | | retries | ELASTICSEARCH_RETRIES | INTEGER | operation retries | 3 |
Delimiter for different hosts: | (pipe)
http://localhost:9200/|https://username:password!#$?*abc@foo.com:9200/
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. :)
composer test
Please see CONTRIBUTING for details.
The code for LaravelElasticsearchProvider is distributed under the terms of the MIT license (see LICENSE).