PHPackages                             zakharov-andrew/yii2-messenger - 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. [Admin Panels](/categories/admin)
4. /
5. zakharov-andrew/yii2-messenger

ActiveYii2-extension[Admin Panels](/categories/admin)

zakharov-andrew/yii2-messenger
==============================

Yii2 Messenger

v0.0.1(1y ago)24MITPHPPHP &gt;=7.3

Since Mar 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ZakharovAndrew/yii2-messenger)[ Packagist](https://packagist.org/packages/zakharov-andrew/yii2-messenger)[ RSS](/packages/zakharov-andrew-yii2-messenger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

🚀 Yii2 messenger - Chat Module for Yii2 📨✨
==========================================

[](#-yii2-messenger---chat-module-for-yii2-)

[![Latest Stable Version](https://camo.githubusercontent.com/71c85fd5cd2f6db2463839a32b437a414525674241b830968a23ff7747a6846e/68747470733a2f2f706f7365722e707567782e6f72672f7a616b6861726f762d616e647265772f796969322d6d657373656e6765722f762f737461626c65)](https://packagist.org/packages/zakharov-andrew/yii2-messenger)[![Total Downloads](https://camo.githubusercontent.com/ff8458f88bc6119a61302b03be67d5abce19f8f161b8610c79a55a874dd34583/68747470733a2f2f706f7365722e707567782e6f72672f7a616b6861726f762d616e647265772f796969322d6d657373656e6765722f646f776e6c6f616473)](https://packagist.org/packages/zakharov-andrew/yii2-messenger)[![License](https://camo.githubusercontent.com/98af81bbc594af9a1a50784abd660594c40ba6641f52fd83dc30722b6704431f/68747470733a2f2f706f7365722e707567782e6f72672f7a616b6861726f762d616e647265772f796969322d6d657373656e6765722f6c6963656e7365)](https://packagist.org/packages/zakharov-andrew/yii2-messenger)[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)

The **Yii2 messenger** provides a complete solution for messaging between users, including private conversations and group chats with advanced management capabilities.

 [Features](#-features) • [Installation](#-installation) • [Usage](#-usage) • [System Requirements](#-system-requirements) • [Contributing](#-contributing) • [License](#-license)

 [🇷🇺 Русская версия](README.ru.md)

---

🔥 Features
----------

[](#-features)

### 💬 Messaging System

[](#-messaging-system)

- Real-time text messaging ⚡
- Message history view 📜
- Delete your own messages 🗑️
- Admin ability to delete any messages 🛡️

### 👥 Group Chats

[](#-group-chats)

- Create chats with name and description 🏷️
- Upload chat avatar 🖼️
- Different access types:
    - 🔗 Public (via link)
    - ✉️ Invite-only
    - 🔒 Private (manual addition only)
- View participant list 👀

### 🛠 Chat Management (for admins)

[](#-chat-management-for-admins)

- Assign administrators 👑
- Flexible permission system:
    - Delete messages 🗑️
    - Ban users ⛔
    - Temporary mute users 🔕
    - Add/remove participants ➕➖
    - Edit chat info ✏️
    - Manage other admins 🛡️
- View statistics and activity 📊

### 🤝 Private Messages

[](#-private-messages)

- Automatic chat creation for first message 🤖
- List of all conversations 📋
- Search message history 🔍

🚀 Installation
--------------

[](#-installation)

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

Either run

```
$ composer require zakharov-andrew/yii2-messenger

```

or add

```
"zakharov-andrew/yii2-messenger": "*"

```

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

Subsequently, run

```
./yii migrate/up --migrationPath=@vendor/zakharov-andrew/yii2-messenger/migrations

```

in order to create the settings table in your database.

Or add to console config

```
return [
    // ...
    'controllerMap' => [
        // ...
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => [
                '@console/migrations', // Default migration folder
                '@vendor/zakharov-andrew/yii2-messenger/src/migrations'
            ]
        ]
        // ...
    ]
    // ...
];
```

Usage
-----

[](#usage)

Add this to your main configuration's modules array

```
    'modules' => [
        'messenger' => [
            'class' => 'ZakharovAndrew\messenger\Module',
            'bootstrapVersion' => 5, // if use bootstrap 5
            'defaultChatImage' => '/images/default-product-image.jpg', // Path to the default image for a chat
            'uploadWebDir' => '/web/path/to/upload/dir/'
        ],
        'imageupload' => [
            'class' => 'ZakharovAndrew\imageupload\Module',
            'uploadDir' => '/path/to/upload/dir/',
        ],
        // ...
    ],
```

**Note**: the maximum number of additional parameters is 3. Change the value of **uploadDir** to the directory for uploading images. Uses the [yii2-image-upload-widget](https://github.com/ZakharovAndrew/yii2-image-upload-widget) module to upload images.

Add this to your main configuration's urlManager array

```
'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'rules' => [
                // ...
                'chat/' => 'messenger/chat/view',
                // ...
            ],
        ],
```

🎨 Frontend Integration
----------------------

[](#-frontend-integration)

The module provides:

- Ready-to-use AJAX controllers for easy integration 📡
- Responsive interface (mobile-friendly) 📱
- Customizable styling options 🎨

📌 System Requirements
---------------------

[](#-system-requirements)

- PHP 7.4+
- Yii2 2.0.40+
- MySQL 5.7+ or PostgreSQL 9.5+

👥 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

📄 License
---------

[](#-license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance46

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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

410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08ab00e707ea2dd0f8703587f1b770398b9662c98da6738d7a5e14c13caa1a8a?d=identicon)[ZakharovAndrew](/maintainers/ZakharovAndrew)

---

Top Contributors

[![ZakharovAndrew](https://avatars.githubusercontent.com/u/37038505?v=4)](https://github.com/ZakharovAndrew "ZakharovAndrew (34 commits)")

---

Tags

chatmessagephpyii2yii2-chatyii2-messengeryii2-modulesyii2extensionmoduleadminyii 2Messengeryii2 messenger

### Embed Badge

![Health badge](/badges/zakharov-andrew-yii2-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/zakharov-andrew-yii2-messenger/health.svg)](https://phpackages.com/packages/zakharov-andrew-yii2-messenger)
```

###  Alternatives

[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[yiister/yii2-gentelella

Free admin template for backend

277278.3k5](/packages/yiister-yii2-gentelella)

PHPackages © 2026

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