PHPackages                             sowe/websocketio - 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. sowe/websocketio

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sowe/websocketio
================

SocketIO implementation using RFC6455-compliant websockets only. Built on top of Swoole Websocket Server.

1.0.3(5y ago)16MITPHPPHP &gt;=7.2

Since May 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jsanahuja/websocketio-server-php)[ Packagist](https://packagist.org/packages/sowe/websocketio)[ Docs](https://github.com/jsanahuja/websocketio-server-php)[ RSS](/packages/sowe-websocketio/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

websocketio-server-php
======================

[](#websocketio-server-php)

SocketIO implementation using RFC6455-compliant websockets only. Built on top of Swoole Websocket Server.

Requirements
------------

[](#requirements)

- PHP &gt;=7.2
- Swoole ^4.0

Install
-------

[](#install)

```
composer require sowe/websocketio

```

Usage
-----

[](#usage)

```
use Sowe\WebSocketIO\Client;

require_once __DIR__ . "/vendor/autoload.php";

$server = new Server('0.0.0.0', 9001);

$server->on('start', function() {
    echo "Server started!" . PHP_EOL;
});
$server->on('stop', function() {
    echo "Server stopped!" . PHP_EOL;
});
$server->on('connection', function(Client $client) {
    $client->on('disconnect', function() {
        echo "Client " . $client->getId() . " disconnected" . PHP_EOL;
    });
    $client->on('error', function($error) {
        echo "Client " . $client->getId() . " error: " . $error . PHP_EOL;
    });

    echo "New client connected " . $client->getId() . " from IP " . $client->getAddress() . PHP_EOL;
});

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

1875d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/35cf5aa5a22797c5f00672833fb320490a2e6ad68748be7c2ed0ba50d8eb9359?d=identicon)[jsanahuja](/maintainers/jsanahuja)

---

Top Contributors

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

---

Tags

eventwebsocketswoolewebsocketio

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sowe-websocketio/health.svg)

```
[![Health](https://phpackages.com/badges/sowe-websocketio/health.svg)](https://phpackages.com/packages/sowe-websocketio)
```

###  Alternatives

[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k691.5k13](/packages/hhxsv5-laravel-s)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.2M89](/packages/swow-swow)[morozovsk/websocket

simple php websocket server with examples and demo: simple chat (single daemon) - http://sharoid.ru/chat.html , pro chat (master + worker) - http://sharoid.ru/chat2.html , simple game - http://sharoid.ru/game.html

36617.8k2](/packages/morozovsk-websocket)[morozovsk/yii2-websocket

simple php websocket server with examples and demo: simple chat (single daemon) - http://sharoid.ru/chat.html , pro chat (master + worker) - http://sharoid.ru/chat2.html , simple game - http://sharoid.ru/game.html

9515.3k](/packages/morozovsk-yii2-websocket)[hyperf/websocket-server

A websocket server library for Hyperf.

12524.7k30](/packages/hyperf-websocket-server)

PHPackages © 2026

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