PHPackages                             hunwalk/yii2-websocket - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. hunwalk/yii2-websocket

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

hunwalk/yii2-websocket
======================

Yii2 websocket server component

v1.1(6y ago)1210↓33.3%MITPHP

Since Oct 7Pushed 6y ago1 watchersCompare

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

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

Yii2 [WebSocketServer](/WebSocketServer.php)
============================================

[](#yii2-websocketserver)

#### This package is a fixed and reduced version of the original yii2-websocket which is at the time is not maintained.

[](#this-package-is-a-fixed-and-reduced-version-of-the-original-yii2-websocket-which-is-at-the-time-is-not-maintained)

#### You can find the original repository here:

[](#you-can-find-the-original-repository-here-httpsgithubcomconsikyii2-websocket)

I made these changes simply, because i will need this in another project. I cannot provide documentation yet, there are quite a few changes. Your only option is to read the code yourself. There may be some kind of docs here in the future.

Because of an ongoing project, you can expect this repo to be maintained by me.

Also, the command functionality has been removed, because i found it unsafe to use, and I'm going to have a different approach implementing that inside my project.

Used [Ratchet](http://socketo.me/)

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

[](#installation)

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

Either run

```
composer require hunwalk/yii2-websocket

```

or add

```
"hunwalk/yii2-websocket": "^1.0"
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

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

Total

2

Last Release

2322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91a0bac21c796aa3caaa0110086c0c8800f09168a73f0183e2e4c3a974c39281?d=identicon)[HunWalk](/maintainers/HunWalk)

---

Top Contributors

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

---

Tags

phpratchetratchetphpwebsocketyii2yii2-websocketwebsocketyii2componentRatchet

### Embed Badge

![Health badge](/badges/hunwalk-yii2-websocket/health.svg)

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

###  Alternatives

[consik/yii2-websocket

Yii2 websocket server component

9275.9k2](/packages/consik-yii2-websocket)[gos/web-socket-bundle

Symfony Web Socket Bundle

6202.2M8](/packages/gos-web-socket-bundle)[joni-jones/yii2-wschat

Online chat based on web sockets and ratchet php

981.3k](/packages/joni-jones-yii2-wschat)[takielias/codeigniter-websocket

CodeIgniter Websocket using Ratchet Websocket technology. Inspired by https://github.com/romainrg/ratchet\_client

609.1k](/packages/takielias-codeigniter-websocket)[takielias/codeigniter4-websocket

Websocket using Ratchet Websocket technology for CodeIgniter 4

883.0k](/packages/takielias-codeigniter4-websocket)[immusen/yii2-swoole-websocket

Websocket server for Yii2 base on swoole 4, Support JSONRPC, Resolve 'method' as a route reflect into controller/action, And support http or redis pub/sub to trigger async task from your web application.

338.8k](/packages/immusen-yii2-swoole-websocket)

PHPackages © 2026

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