dynamikaweb/yii2-chat

Web chat widget list view

Installs: 571

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Type:yii2-extension

1.1.1 2022-02-04 01:19 UTC

This package is auto-updated.

Last update: 2024-11-04 07:20:29 UTC


README

Latest Stable Version Total Downloads License

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
        ];
    }
]);