poprigun/chat
最新稳定版本:v0.3
Composer 安装命令:
composer require poprigun/chat
包简介
poprigun-chat
README 文档
README
poprigun-chat
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require poprigun/chat "*"
or add
"poprigun/chat": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
php
js
$(window).ready(function(){ poprigunChat.loadDialogs(); poprigunChat.listenServerDialog(); });
Template
Templates build with Handlebars
Migration
yii migrate --migrationPath=@vendor/poprigun/chat/migrations
Main config
'modules' => [ 'poprigun_chat' => [ 'class' => \poprigun\chat\PChatModule::className(), 'params' => [ 'pchat-settings' => [ 'userModel' => \frontend\models\User::className(), 'userAvatarMethod' => [ 'class' =>\frontend\models\User::className(), 'method' =>'avatar', ], 'userNameMethod' => [ 'class' =>\frontend\models\Profile::className(), 'method' =>'fullName', 'relation' => 'profile', ], ], ], ], ],
统计信息
- 总下载量: 2.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-4-Clause
- 更新时间: 2015-09-04