nextvikas/yii2-nextchat

为您的yii2应用提供的简单聊天功能

安装次数: 110

依赖者: 0

建议者: 0

安全: 0

星星: 0

关注者: 0

分支: 2

开放问题: 0

语言:JavaScript

类型:yii2-extension

dev-master 2024-09-22 18:10 UTC

This package is auto-updated.

Last update: 2024-09-22 18:10:40 UTC


README

Total Downloads GitHub tag

安装

添加到composer.json

"nextvikas/yii2-nextchat": "@dev"

composer require --prefer-dist "nextvikas/yii2-nextchat @dev"

一旦扩展安装完成,请按以下方式修改您的应用程序配置

'modules' => [

    ----------------

    'nextchat' => [
        'class' => 'nextvikas\nextchat\Module',
        'defaultRoute' => 'chat/index',
        'components'=>[
            'chating'=>[
                'class'=>'nextvikas\nextchat\components\Chating',
            ],
        ]
    ],
],

迁移命令

yii migrate
php yii migrate --migrationPath=@nextvikas/nextchat/migrations

您可以通过以下URL访问Next Chat

https:///path/to/index.php?r=nextchat

或者如果您启用了美观的URL,可以使用以下URL

https:///path/to/index.php/nextchat

登录详情

username: user10000
Password: 123qwe

您应该看到以下内容

yii next chat demo page

或者如果您想在其他页面上使用小部件,请按照以下配置

<?php echo \nextvikas\nextchat\components\ChatWidget::widget() ?>

yii next chat widget demo page