Registry / networking / workerman-phpsocket-io

workerman-phpsocket-io

JSON →
library2.3.0phppackagistunverified

A server side alternative implementation of socket.io in PHP based on Workerman.

composer require workerman/phpsocket.io
INSTALL
IMPORT
SIG · WORKERMAN-PHPSOCKE
W
workerman-phpsocket-io
networkingphpv2.3.0
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.

SocketIO
use PHPSocketIO\SocketIO;

Start a Socket.IO server on port 2020.

use PHPSocketIO\SocketIO; $io = new SocketIO(2020); $io->on('connection', function ($socket) { echo "New connection\n"; }); $io->start();
Debug
Known issues
gotchaRequires Workerman and may have compatibility issues with some PHP extensions.
fix
Ensure pcntl and posix extensions are installed for Linux.
affects: >=2.0.0
Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
30
OpenAI (training)
2
Resources
workerman-phpsocket-io — pip install workerman-phpsocket-io · libregistry