承接 orphans/elasticsearch 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

orphans/elasticsearch

Composer 安装命令:

composer require orphans/elasticsearch

包简介

Provides elasticsearch Facade for Laravel 5.

README 文档

README

Laravel 5.1 Service Wrapper and Facade for elasticsearch/elasticsearch.

Installation

Add the following to your composer.json file:

{
    "require" : {
        "orphans/elasticsearch" : "dev-master"
    }
}

Then install/update your composer project as normal.

Add the following line to you providers in config/app.php:

Orphans\ElasticSearch\App\Providers\ElasticSearchServiceProvider::class,

Add the following line to you facades in config/app.php:

'ES' => Orphans\ElasticSearch\Support\Facades\ElasticSearch::class,

Usage

To customise your elasticsearch config, publish the package config to your config folder:

php artisan vendor:publish

In your controllers, just include the following:

use ES;

And you can then do queries as normal using the facade:

$response = ES::search($params);

统计信息

  • 总下载量: 60
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-08