Download the PHP package phrity/websocket without Composer
On this page you can find all versions of the php package phrity/websocket. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phrity/websocket
More information about phrity/websocket
Files in phrity/websocket
Package websocket
Short Description WebSocket client and server
License ISC
Homepage https://phrity.sirn.se/websocket
Informations about the package websocket
Websocket Client and Server for PHP
This library contains WebSocket client and server for PHP.
The client and server provides methods for reading and writing to WebSocket streams.
This repo replaces the abandoned textalk/websocket
repo
and is maintained by Sören Jensen, who has been maintaining the original since v1.3
.
Some features
- Client and multi-connection Server
ws
(TCP) andwss
(SSL) support- Listener callbacks on incoming messages and other events
- Close and Ping/Pong handling (standard middlewares)
- Deflate compression (middleware)
- Additional optional middlewares and ability to create own middlewares
- Support message fragmentation and payload masking
Documentation
- Documentation
- Client - The WebSocket client
- Server - The WebSocket server
- Changelog - The changelog of this repo
- Contributing - Contributors and requirements
- Examples - Examples
- v2 -> v3 - How to migrate from v2 to v3
Installing
Preferred way to install is with Composer.
Client
The client can read and write on a WebSocket stream. It internally supports Upgrade handshake and implicit close and ping/pong operations.
Set up a WebSocket Client for request/response strategy.
Set up a WebSocket Client for continuous subscription
Server
The server is a multi connection, listening server. It internally supports Upgrade handshake and implicit close and ping/pong operations.
Set up a WebSocket Server for continuous listening
License
ISC License
All versions of websocket with dependencies
phrity/net-uri Version ^2.1
phrity/net-stream Version ^2.3
psr/http-message Version ^1.1 | ^2.0
psr/log Version ^1.0 | ^2.0 | ^3.0