media24si/eswrapper
最新稳定版本:1.0
Composer 安装命令:
composer require media24si/eswrapper
包简介
Laravel 5 Elasticsearch-PHP 2 wrapper
README 文档
README
Facade for elasticsearch-php2
Install
Require this package with Composer (Packagist), using the following command:
$ composer require media24si/eswrapper
Register the ESWrapperServiceProvider to the providers array in config/app.php
Media24si\ESWrapper\ESWrapperServiceProvider::class,
Publish vendor files (config file):
$ php artisan vendor:publish
Optional
Register the facade in config/app.php:
'Elastic' => Media24si\ESWrapper\Facades\ESWrapper::class
Usage
You can use this package without any configuration. Just use the \Elastic facade in your controller.
Call your endpoints, like you would a normal elasticsearch client:
\Elastic::get([ 'index' => 'my_index', 'type' => 'my_type', 'id' => 'my_id' ]);
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 105
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-18