承接 idk/yii2-botman 相关项目开发

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

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

idk/yii2-botman

最新稳定版本:1.0.0

Composer 安装命令:

composer require idk/yii2-botman

包简介

Yii2 bindings for Botman

README 文档

README

Yii2 bindings for Botman.

Latest Stable Version Latest Unstable Version License Total Downloads Build Status codecov

Installation

The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require idk/yii2-botman

Usage

In order to use Yii2 caching system with Botman, initialize your Botman instance using this:

// create an instance
$botman = BotManFactory::create($botmanConfig, new \idk\yii2\botman\Cache());

Cache storage

By default, yii2-botman will use the default configured Yii::$app->cache component. If you need to use a dedicated cache interface for Botman, you can define it in the botmanCache component like the following:

'components' => [
    // default cache used by your app
    'cache' => [
        'class' => 'yii\caching\DbCache',
    ],
    // specific cache for botman
    'botmanCache' => [
        'class' => 'yii\caching\FileCache',
        'cachePath' => '@runtime/botman',
    ],
]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-13