nextvikas / yii2-nextchat
A simple chat for your yii2 application
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-04-22 19:35:33 UTC
README
Installation
Add to composer.json
"nextvikas/yii2-nextchat": "@dev"
or
composer require --prefer-dist "nextvikas/yii2-nextchat @dev"
Once the extension is installed, simply modify your application configuration as follows:
'modules' => [ ---------------- 'nextchat' => [ 'class' => 'nextvikas\nextchat\Module', 'defaultRoute' => 'chat/index', 'components'=>[ 'chating'=>[ 'class'=>'nextvikas\nextchat\components\Chating', ], ] ], ],
Migrate Command:
yii migrate
php yii migrate --migrationPath=@nextvikas/nextchat/migrations
You can then access Next Chat through the following URL:
http://localhost/path/to/index.php?r=nextchat
or if you have enabled pretty URLs, you may use the following URL:
http://localhost/path/to/index.php/nextchat
Login details:
username: user10000
Password: 123qwe
You should see the below:
or if you want to use widget in another pages then please configuration as follows
<?php echo \nextvikas\nextchat\components\ChatWidget::widget() ?>