nextvikas / yii2-nextchat
为您的yii2应用提供的简单聊天功能
dev-master
2024-09-22 18:10 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-22 18:10:40 UTC
README
安装
添加到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
您应该看到以下内容
或者如果您想在其他页面上使用小部件,请按照以下配置
<?php echo \nextvikas\nextchat\components\ChatWidget::widget() ?>

