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

ActiveExtra[Utility &amp; Helpers](/categories/utility)

programmis/yii2-socket-chat
===========================

Yii2 socket chat base on simple socket chat

0.0.9(9y ago)01.5k1[1 issues](https://github.com/programmis/yii2-socket-chat/issues)MITPHPPHP &gt;=7

Since Oct 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/programmis/yii2-socket-chat)[ Packagist](https://packagist.org/packages/programmis/yii2-socket-chat)[ Docs](https://github.com/programmis/yii2-socket-chat)[ RSS](/packages/programmis-yii2-socket-chat/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (8)Versions (10)Used By (0)

**Installing**

*1) Download composer:*

```
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
```

*2) Install:*

```
php composer.phar require programmis/yii2-socket-chat
```

**In config/main.php**

```
'components' => [
    'chat'   => [
        'class'                 => '\path\to\Server',
        'configClass'           => '\path\to\Config',
        'listen_host'           => '0.0.0.0',
        'server_host'           => '127.0.0.1',
        'port'                  => 1337,
        'proxy_port'            => 1338,
        'connection_type'       => 'wss',
        'proxy_connection_type' => 'ws',
        'wss' => [
            'local_cert' => '/path/to/cert',    //cert.pem
            'local_pk'   => '/path/to/cert.pk'  //primary key
        ]
    ],
]
```

**In php code**

```
SocketChatWidget::widget([
    'room'              => 'my_room',
    'hash'              => 'you_hash, /* in UserProcessor->createUser */
    'message_area_id'   => 'chat_text_area',
    'send_on_enter'     => true,
    'current_user_id'   => $user->id,
    /* 'recipient_id' => $recipient_id */
]);
```

How it work see [https://github.com/programmis/socket\_chat](https://github.com/programmis/socket_chat)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~7 days

Total

9

Last Release

3474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26b0822e1e5fa564e6b8762213749f2ce5d3e13e6313c09c9da898ea0638e1a6?d=identicon)[programmis](/maintainers/programmis)

---

Top Contributors

[![programmis](https://avatars.githubusercontent.com/u/10850140?v=4)](https://github.com/programmis "programmis (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[yii2mod/yii2-sweet-alert

Alert widget based on SweetAlert extension {@link http://tristanedwards.me/sweetalert)

43157.8k2](/packages/yii2mod-yii2-sweet-alert)[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29202.0k](/packages/richardfan1126-yii2-sortable-gridview)[zhuravljov/yii2-datetime-widgets

Datetime widgets for Yii2.

21121.6k4](/packages/zhuravljov-yii2-datetime-widgets)[liyunfang/yii2-contextmenu

yii2 Extended for bootstrap-contextmenu plugin https://github.com/sydcanem/bootstrap-contextmenu

2435.9k1](/packages/liyunfang-yii2-contextmenu)[yii2mod/yii2-c3-chart

Yii2 wrapper for D3-based reusable chart library

1397.0k](/packages/yii2mod-yii2-c3-chart)[yii2mod/yii2-bootstrap-notify

Alert widget based on Bootstrap Notify extension {@link http://bootstrap-notify.remabledesigns.com/)

1564.1k4](/packages/yii2mod-yii2-bootstrap-notify)

PHPackages © 2026

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