# Phrity Websocket 4.0

A new major version of Phrity Websocket, a WebSocket client and server for PHP, with a clearer set of exceptions.

Version 4 removes deprecated code and uses Nyholm PSR HTTP directly instead of its own stub classes. A server now returns its connections as a collection. A migration guide covers the move from version 3.

- Made by: [Sören Jensen](https://github.com/sirn-se)
- Shipped: 19/09/2026
- Date from: [release](https://github.com/sirn-se/websocket-php/releases/tag/4.0.0)
- Source: [github.com/sirn-se/websocket-php](https://github.com/sirn-se/websocket-php)
- Docs: [phrity.sirn.se/websocket](https://phrity.sirn.se/websocket)
- Install: `composer require phrity/websocket`
- Licence: ISC
- Stack: plain PHP
- Checked: 30/10/2026
- Added: 31/10/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/phrity-websocket-4-0/)
```

See more at [phplives.dev](https://phplives.dev)
