tomlutzenberger/yii2-smartsupp-chat
Composer 安装命令:
composer require tomlutzenberger/yii2-smartsupp-chat
包简介
Yii2 Widget for Smartsupp Chat
README 文档
README
Yii2 Smartsupp
Yii2 Widget for Smartsupp Chat
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tomlutzenberger/yii2-smartsupp-chat "*"
or add
"tomlutzenberger/yii2-smartsupp-chat": "*"
to the required section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by:
<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget() ?>
You can either add the ID of your container to the params.php
<?php return [ // ... 'smartsupp' => 'your_key', ];
or pass it directly to the widget:
<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget([ 'key' => 'your_key' ]) ?>
To be able to use your own triggers you can do this by setting 2 optional parameters:
<?= \TomLutzenberger\Smartsupp\SmartsuppChat::widget([ 'useCustomOpener' => true, 'useCustomOpenerMobile' => true, ]) ?>
For more details see:
License
This package is published under the MIT License and can be used for any commercial and personal projects.
统计信息
- 总下载量: 677
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-28
