2017 © Pedro Peláez
 

yii2-extension chat

poprigun-chat

image

poprigun/chat

poprigun-chat

  • Wednesday, November 25, 2015
  • by poprigun
  • Repository
  • 3 Watchers
  • 3 Stars
  • 145 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

poprigun-chat

poprigun-chat, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require poprigun/chat "*"

or add, (*4)

"poprigun/chat": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

php, (*7)

= \poprigun\chat\widgets\StaticChat::widget([ 'template' => 'path', 'node => true, 'options' => [ 'dialogTime' => 0, 'messageTime' => 0, 'form' => '#poprigun-chat-send-form', ], ]);?>= \poprigun\chat\widgets\ChatButton::widget([ 'options' => [ 'receiver_id' => $user->id, 'text' => 'Message', ], ] )?>

js, (*8)

$(window).ready(function(){ poprigunChat.loadDialogs(); poprigunChat.listenServerDialog(); });, (*9)

Template

Templates build with Handlebars, (*10)

Migration

yii migrate --migrationPath=@vendor/poprigun/chat/migrations, (*11)

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', ], ], ], ], ],, (*12)

The Versions

25/11 2015

dev-master

9999999-dev

poprigun-chat

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar poprigun

extension yii2 chat poprigun

20/11 2015

dev-ng

dev-ng

poprigun-chat

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar poprigun

extension yii2 chat poprigun

12/10 2015

dev-dev

dev-dev

poprigun-chat

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar poprigun

extension yii2 chat poprigun

04/09 2015

v0.3

0.3.0.0

poprigun-chat

  Sources   Download

BSD-4-Clause

The Requires

 

by Avatar poprigun

extension yii2 chat poprigun