承接 adobradi/laravel5-elastic 相关项目开发

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

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

adobradi/laravel5-elastic

最新稳定版本:v1.1.3

Composer 安装命令:

composer require adobradi/laravel5-elastic

包简介

Simple Elastic wrapper for Laravel 5

README 文档

README

Join the chat at https://gitter.im/AlfredDobradi/laravel5-elastic

Simple Elastic wrapper for Laravel 5

This package was built on Elasticsearch/Elasticsearch. The only purpose of this package is to create a simpler way to use Elastic in Laravel 5.

Installation

First you'll have to add the package to your dependencies in your composer.json file.

{
    "require": {
        "adobradi/laravel5-elastic": "~1.0"
    }
}

Or just simply do composer require adobradi/laravel5-elastic ~1.0 in your project root.

Now you'll have to add the provider to the list in config/app.php:

    return [
        // ...
        'providers' => [
            // ...
            'Adobradi\Elastic\ElasticServiceProvider',
            // ...
        ]
        // ...
    ];

After this, the Elastic alias will be created and you'll be able to use the Elastic facade to make calls:

use Elastic;

class YourClass {
    function yourFunction()
    {
        $data = Elastic::search([
            'index' => 'your_index_name',
            'type' => 'article',
            'size' => 15
        ]);
    }
}

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-13