PHPackages                             ez-php/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. [Framework](/categories/framework)
4. /
5. ez-php/websocket

ActiveLibrary[Framework](/categories/framework)

ez-php/websocket
================

PHP 8.5 Fiber-based WebSocket server for ez-php — RFC 6455 handshake, frame codec, ChannelManager pub/sub, and a non-blocking event loop.

1.2.0(1mo ago)00MITPHPPHP ^8.5CI passing

Since Mar 28Pushed 1mo agoCompare

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

READMEChangelogDependencies (6)Versions (2)Used By (0)

ez-php/websocket
================

[](#ez-phpwebsocket)

PHP 8.5 Fiber-based WebSocket server for the ez-php ecosystem.

Implements RFC 6455 from the ground up — no third-party WebSocket library needed. Each connection runs in its own **Fiber**, allowing hundreds of concurrent clients on a single PHP process without threads or async extensions.

Intentionally separate from `ez-php/broadcast` (SSE/event-bus); this module provides bidirectional, low-latency real-time communication.

---

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

[](#installation)

```
composer require ez-php/websocket
```

No framework integration is needed — the server runs as a standalone long-lived process.

---

Quick start
-----------

[](#quick-start)

```
