sabercoding / yii2-ots

本扩展为 Yii2 提供了 OTS 集成。

安装: 2

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 1

开放问题: 0

类型:yii2-extension

v0.1 2016-12-22 09:50 UTC

This package is not auto-updated.

Last update: 2024-09-28 20:19:56 UTC


README

本扩展为 ots 提供了 Yii 框架 2.0 的集成。它包括基本的查询/搜索支持和实现了 ActiveRecord 模式,允许您将活动记录存储在 Elasticsearch 中。

有关许可信息,请参阅 LICENSE 文件。

文档位于 docs/guide/README.md

安装

推荐通过 composer 安装此扩展。

运行以下命令添加到 composer.json 的 require 部分:

php composer.phar require --prefer-dist sabercoding/yii2-ots

到 composer.json 的 require 部分。

配置

要使用此扩展,您需要在应用程序配置中配置 Connection 类。

return [
    //....
    'components' => [
        'ots' => [
            'EndPoint' => '',
            'AccessKeyID' => '',
            'AccessKeySecret' => '',
            'InstanceName' => '',
            'DebugLogHandler' => '',
            'ConnectionTimeout' => '',
            'SocketTimeout' => '',
            'ErrorLogHandler' => '',
        ],
    ]
];