2017 © Pedro Peláez
 

yii2-extension yii2-chat

The Yii2 extension module to chat registered users.

image

slavkovrn/yii2-chat

The Yii2 extension module to chat registered users.

  • Tuesday, August 29, 2017
  • by slavkovrn
  • Repository
  • 0 Watchers
  • 0 Stars
  • 111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 21 % Grown

The README.md

Chat for registered users module for Yii 2.0 Framework advanced template

The Yii2 extension module to chat for registered users using User model of advanced template., (*1)

Log visitor demo page, (*2)

Log visitor, (*3)

Installation

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

Either run:, (*5)

composer require slavkovrn/yii2-chat

or add, (*6)

"slavkovrn/yii2-chat": "*"

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

Usage

1.add link to ChatModule in your config, (*8)

return [
    'modules' => [
        'chat' => [
            'class' => 'slavkovrn\chat\ChatModule',
            'numberLastMessages' => 30,
        ],
    ],
]; 
  1. in your User model you should define two getters for name and link to icon of registered User

in my case that's, (*9)

namespace app\models;
...
use app\models\Profile;
class User extends ActiveRecord implements IdentityInterface
{
    public function getChatname()
    {
        return Profile::find()->where(['id' => Yii::$app->user->id])->one()['name'];
    }

    public function getChaticon()
    {
        return Profile::find()->where(['id' => Yii::$app->user->id])->one()['photo'];
    }
    ...

and now you can chat with registered users via http://yoursite.com/chat url, (*10)

write comments to admin, (*11)

The Versions

29/08 2017

dev-master

9999999-dev

The Yii2 extension module to chat registered users.

  Sources   Download

MIT

The Requires

 

extension yii2 chat users registered

29/08 2017

1.0.0

1.0.0.0

The Yii2 extension module to chat registered users.

  Sources   Download

MIT

The Requires

 

extension yii2 chat users registered