Registry / networking / devristo-phpws

devristo-phpws

JSON →
libraryphppackagistunverified

WebSocket Server and Client library for PHP.

composer require devristo/phpws
INSTALL
IMPORT
SIG · DEVRISTO-PHPWS
D
devristo-phpws
networkingphp
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebSocketServer
use Devristo\Phpws\Server\WebSocketServer;

Start a WebSocket server on port 8080.

use Devristo\Phpws\Server\WebSocketServer; $server = new WebSocketServer('tcp://0.0.0.0:8080'); $server->on('request', function($request) { echo "Connection received\n"; }); $server->start();
Debug
Known issues
breakingRequires PHP 7.0+ and ext-sockets.
fix
Install PHP 7.0+ and enable sockets extension.
affects: >=1.0.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
devristo-phpws — pip install devristo-phpws · libregistry