PHPackages                             jakharbek/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. jakharbek/yii2-chat

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

jakharbek/yii2-chat
===================

Chat

3.0(7y ago)01071[1 issues](https://github.com/jakharbek/yii2-chat/issues)MITPHP

Since Mar 11Pushed 7y agoCompare

[ Source](https://github.com/jakharbek/yii2-chat)[ Packagist](https://packagist.org/packages/jakharbek/yii2-chat)[ RSS](/packages/jakharbek-yii2-chat/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Chat
====

[](#chat)

Chat

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist jakharbek/yii2-chat "*"

```

or add

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

```

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

### Directory Structure

[](#directory-structure)

```
api/                 api
assets/              assets
command/             daimons and console
dto/                 data transfer object
exceptions/          exceptions
factory/             factories
forms/               forms
interfaces/          interfaces
migrations/          migrations
models/              models
repositories/        repositories
services/            services

```

Usage
-----

[](#usage)

В данном расширение нет разделение разрешение и прав доступа, данную особеность осталось на ваши усмотрение для больее гибкости расширение.

Для начало использование вам следует применить миграции:

```
yii migrate --migrationPath=@vendor/jakharbek/yii2-chat/migrations
```

после вам нужно применить Bootstrap класс.

```
\jakharbek\chat\Bootstrap
```

API
---

[](#api)

Для его использование вам нужно подключить контроллер.

```
...
controllerMap => [
'server' => \jakharbek\chat\api\ChatController::class
]
...
```

или же можете скопировать его или взять от него наследование и подключить это тоже на ваше усмотрение

Подключение сокета
------------------

[](#подключение-сокета)

Запуск веб-сокета сервера
-------------------------

[](#запуск-веб-сокета-сервера)

Вам нужно подключить в ваше консольное приложение контроеллер веб-сокета:

```
...
controllerMap => [
'server' => \jakharbek\chat\commands\ServerController::class
]
...
```

После запустить это консольную комманду как daimon. На пример

```
php yii server/start [port]
```

Подключение asset'а
-------------------

[](#подключение-assetа)

```
\jakharbek\chat\assets\ChatAsset::register($this);
```

Пример подключение сокет клиента.
---------------------------------

[](#пример-подключение-сокет-клиента)

```
$js = registerJs($js);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Every ~6 days

Total

6

Last Release

2595d ago

Major Versions

0.1 → 1.02019-03-14

1.2 → 2.02019-04-09

2.0 → 3.02019-04-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2721d46252bc78f08af8c419a8ac814b6b79c9764696686e13e119e4f291f95?d=identicon)[javharbek](/maintainers/javharbek)

---

Top Contributors

[![jakharbek](https://avatars.githubusercontent.com/u/31648260?v=4)](https://github.com/jakharbek "jakharbek (8 commits)")

---

Tags

yii2extensionchat

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jakharbek-yii2-chat/health.svg)](https://phpackages.com/packages/jakharbek-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)
