PHPackages                             slavkovrn/yii2-chat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. slavkovrn/yii2-chat

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

slavkovrn/yii2-chat
===================

The Yii2 extension module to chat registered users.

1.0.0(8y ago)25303[1 issues](https://github.com/SlavKoVrn/yii2-chat/issues)MITPHP

Since Aug 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/SlavKoVrn/yii2-chat)[ Packagist](https://packagist.org/packages/slavkovrn/yii2-chat)[ RSS](/packages/slavkovrn-yii2-chat/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Chat for registered users module for Yii 2.0 Framework advanced template
========================================================================

[](#chat-for-registered-users-module-for-yii-20-framework-advanced-template)

The Yii2 extension module to chat for registered users using User model of advanced template.

[Log visitor demo page](http://yii2.kadastrcard.ru/chat)

[![Log visitor](https://camo.githubusercontent.com/232e8ecd05b292132b8878acb171062dede0f44a26c8b0aeb8cfb5e43a73ff95/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f636861742e6a7067)](https://camo.githubusercontent.com/232e8ecd05b292132b8878acb171062dede0f44a26c8b0aeb8cfb5e43a73ff95/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f636861742e6a7067)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run:

```
composer require slavkovrn/yii2-chat
```

or add

```
"slavkovrn/yii2-chat": "*"
```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

1.add link to ChatModule in your config

```
return [
    'modules' => [
        'chat' => [
            'class' => 'slavkovrn\chat\ChatModule',
            'numberLastMessages' => 30,
        ],
    ],
];
```

2. in your User model you should define two getters for name and link to icon of registered User

in my case that's

```
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  url

[write comments to admin](mailto:slavko.chita@gmail.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3178d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30201456?v=4)[SlavKoVrn](/maintainers/slavkovrn)[@SlavKoVrn](https://github.com/SlavKoVrn)

---

Top Contributors

[![SlavKoVrn](https://avatars.githubusercontent.com/u/30201456?v=4)](https://github.com/SlavKoVrn "SlavKoVrn (5 commits)")

---

Tags

yii2extensionUserschatregistered

### Embed Badge

![Health badge](/badges/slavkovrn-yii2-chat/health.svg)

```
[![Health](https://phpackages.com/badges/slavkovrn-yii2-chat/health.svg)](https://phpackages.com/packages/slavkovrn-yii2-chat)
```

###  Alternatives

[onmotion/yii2-telegram

Support chat for site based on Telegram bot

526.3k](/packages/onmotion-yii2-telegram)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
