PHPackages                             dickyermawan/yii2-socketio - 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. dickyermawan/yii2-socketio

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

dickyermawan/yii2-socketio
==========================

Socket.IO for real-time app

v1.0(6y ago)0821MITJavaScript

Since Jul 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dickyermawan/yii2-socketio)[ Packagist](https://packagist.org/packages/dickyermawan/yii2-socketio)[ RSS](/packages/dickyermawan-yii2-socketio/feed)WikiDiscussions master Synced 2mo ago

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

Socket.IO with Elephant.IO
==========================

[](#socketio-with-elephantio)

Socket.IO for real-time app

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

[](#installation)

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

Either run

```
composer require dickyermawan/yii2-socketio

```

or add

```
"dickyermawan/yii2-socketio": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
//in components array
'socket' => [
    'class' => 'dickyermawan\socketio\ElephantIo',
    'host' => 'http://localhost:8089',
    'options' => [
        'headers' => [
            'X-My-Header: MyHead',
            'Authorization: Bearer 12345asdf'
        ]
    ]
]

//in your controller:
Yii::$app->socket->emit('realTime', [
    'param1' => 'param1',
    'param2' => 'param2'
]);
Yii::$app->socket->close();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

2478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5368c7316426c36acb46a01ab723408b22150119a0fd2d4747f2b1516cc03461?d=identicon)[dickyermawan](/maintainers/dickyermawan)

---

Top Contributors

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

---

Tags

realtimeyii2extensionSocket.ioelephant.io

### Embed Badge

![Health badge](/badges/dickyermawan-yii2-socketio/health.svg)

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[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)
