Download the PHP package kriss/yii2-beary-chat without Composer
On this page you can find all versions of the php package kriss/yii2-beary-chat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kriss/yii2-beary-chat
More information about kriss/yii2-beary-chat
Files in kriss/yii2-beary-chat
Download kriss/yii2-beary-chat
More information about kriss/yii2-beary-chat
Files in kriss/yii2-beary-chat
Vendor kriss
Package yii2-beary-chat
Short Description yii2 bearyChat component
License MIT
Homepage https://github.com/krissss/yii2-beary-chart
Package yii2-beary-chat
Short Description yii2 bearyChat component
License MIT
Homepage https://github.com/krissss/yii2-beary-chart
Please rate this library. Is it a good library?
Informations about the package yii2-beary-chat
yii2 bearyChat
yii2 bearyChat 组件,依赖BearyChat for PHP
安装
推荐使用 composer.
或添加下面代码到composer.json
文件
然后使用
使用方式
单独使用
1.进行配置
basic 模版为 config/web.php, advanced 模版为对应入口的 config/main.php
示例配置如下:
2.进行使用
最简单的使用方式:
更多使用方式参看: BearyChat for PHP
tips:Yii::app->bearyChat->client()
获得的即是\ElfSundae\BearyChat\Client
配合 yii2-thread 使用
发送一条 BearyChat 消息实际上是向 Incoming Webhook 发送同步 HTTP 请求,所以这在一定程度上会延长应用的响应时间。可以使用 yii2-thread (或任意多线程方式)来异步发送消息。
使用 yii2-thread 只需要在对应位置使用发送消息的代码就可以,使用方式不变
参考链接:yii2-thread
All versions of yii2-beary-chat with dependencies
PHP Build Version
Package Version
The package kriss/yii2-beary-chat contains the following files
Loading the files please wait ....