2017 © Pedro Peláez
 

yii2-extension yii2-botman

Yii2 bindings for Botman

image

idk/yii2-botman

Yii2 bindings for Botman

  • Saturday, January 13, 2018
  • by machour
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 94 % Grown

The README.md

yii2-botman

Yii2 bindings for Botman., (*1)

Latest Stable Version Latest Unstable Version License Total Downloads Build Status codecov, (*2)

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:, (*3)

composer require idk/yii2-botman

Usage

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

// 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:, (*5)

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

The Versions

13/01 2018

dev-master

9999999-dev https://github.com/idk-tn/yii2-botman

Yii2 bindings for Botman

  Sources   Download

MIT

The Requires

 

The Development Requires

cache yii2 botman

13/01 2018

1.0.0

1.0.0.0 https://github.com/idk-tn/yii2-botman

Yii2 bindings for Botman

  Sources   Download

MIT

The Requires

 

cache yii2 botman