triadev/laravel-elasticsearch-provider
Composer 安装命令:
composer require triadev/laravel-elasticsearch-provider
包简介
A laravel service provider for the elasticsearch php client.
README 文档
README
A laravel service provider for the elasticsearch php client: https://github.com/elastic/elasticsearch-php
Supported laravel versions
Supported elasticsearch versions
Installation
Composer
composer require triadev/laravel-elasticsearch-provider
Application
The package is registered through the package discovery of laravel and Composer.
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).
统计信息
- 总下载量: 554
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-03