dynamikaweb / yii2-chat
Web chat widget list view
Package info
github.com/dynamikaweb/yii2-chat
Type:yii2-extension
pkg:composer/dynamikaweb/yii2-chat
1.1.1
2022-02-04 01:19 UTC
Requires
- php: >=5.5.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-04 10:43:52 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require dynamikaweb/yii2-chat "*"
or add
"dynamikaweb/yii2-chat": "*"
to the require section of your composer.json file.
How to Use
use dynamikaweb\chat\Chat; echo ChatView::widget([ 'dataProvider' => $dataProvider, 'receive' => function ($model, $key, $index) { return [ 'right' => $index % 2, 'title' => $model->title, 'message' => $model->message ]; } ]);