PHPackages                             iruska/websocket-ext - 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. iruska/websocket-ext

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

iruska/websocket-ext
====================

websocket with permessage-deflate support

v1.0.1(1y ago)012ISCPHP

Since Jul 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/iruska-divine/websocket-ext)[ Packagist](https://packagist.org/packages/iruska/websocket-ext)[ RSS](/packages/iruska-websocket-ext/feed)WikiDiscussions main Synced 1mo ago

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

websocket-ext
=============

[](#websocket-ext)

```
use WebSocket\Http\Response;
use WebSocket\Message\Message;

use WebSocketExt\Client;
use WebSocketExt\Connection;
use WebSocketExt\Logger;

$client = new Client('ws://xxxxxxxx/ws');
$client
    ->setLogger(new Logger())
    // Enable 'permessage-deflate' extension
    ->addHeader('Sec-Websocket-Extensions', 'permessage-deflate; client_max_window_bits')
    ->onConnect(function (Client $client, Connection $connection, Response $response) {
        $message = "\x00\x01\x02" . 'some message ...';
        $client->binary($message);
        echo 'Client -> ' . $message . PHP_EOL;
        echo '[ ' . Client::echoBinary($message) . ' ]' . PHP_EOL;
        echo PHP_EOL;
    })
    ->onBinary(function (Client $client, Connection $connection, Message $message) {
        $response = $message->getContent();
        echo 'Server -> ' . $response . PHP_EOL;
        echo '[ ' . Client::echoBinary($response) . ' ]' . PHP_EOL;
        echo PHP_EOL;
    })
    ->onError(function (Client $client, Null|Connection $connection, Exception $exception) {
        echo '[websocket] ' . 'WSexception: ' . $exception->getMessage() . PHP_EOL;
    })
    ->start();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

679d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80272405ad1ce10a6a22d5a6be7f8f65101f6ff0da86e4e34072ff9cc8429ac1?d=identicon)[iruska-divine](/maintainers/iruska-divine)

---

Top Contributors

[![iruska-divine](https://avatars.githubusercontent.com/u/20485384?v=4)](https://github.com/iruska-divine "iruska-divine (4 commits)")

### Embed Badge

![Health badge](/badges/iruska-websocket-ext/health.svg)

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

###  Alternatives

[dmore/chrome-mink-driver

Mink driver for controlling chrome without selenium

7514.5M345](/packages/dmore-chrome-mink-driver)[swentel/nostr-php

Nostr helper library for PHP

6725.9k3](/packages/swentel-nostr-php)[open-southeners/laravel-companion-apps

Extend your Laravel applications with companions apps (Android, iOS, PWA...)

233.9k](/packages/open-southeners-laravel-companion-apps)

PHPackages © 2026

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