定制 poprigun/chat 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

'path', 'node => true, 'options' => [ 'dialogTime' => 0, 'messageTime' => 0, 'form' => '#poprigun-chat-send-form', ], ]);?> [ 'receiver_id' => $user->id, 'text' => 'Message', ], ] )?>

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

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: BSD-4-Clause
  • 更新时间: 2015-09-04