phrity/websocket
WebSocket client and multi-connection server for PHP, supporting ws/wss, listener callbacks, close and ping/pong handling, optional deflate compression, message fragmentation, and custom opcodes.
getConnections() now returning a Connections collection instead of an array, and use of Nyholm PSR HTTP directly rather than internal stub classes). Treat this as a scoped upgrade project, not a routine patch bump.Adopt if:
Look elsewhere if:
broadcasting with Redis).For Executives: "This package lets us own our real-time infrastructure in PHP, reducing vendor lock-in and costs. For example, we can replace Pusher’s $500/month for 10K connections with a self-hosted Laravel server using this library—saving ~$60K/year while gaining full control. The team has now shipped v4 (the major release we were tracking), which cleans up legacy code and modernizes HTTP handling. We should budget a short, scoped upgrade sprint to move off v3.x, since v4 includes breaking interface changes—planning ahead avoids an emergency migration later."
For Engineering: *"v4.0.0 has shipped and is a major release with breaking changes. Highlights:
MessageEncodingException surfaced on compression failure.getConnections() now returns a Connections collection instead of an array (type change cascades into your callers).Trade-offs:
Next steps:
getConnections(), exception handling, and any internal PSR HTTP stubs.How can I help you explore Laravel packages today?