Registry / networking / workerman-gateway-worker

workerman-gateway-worker

JSON →
library4.0.1phppackagistunverified

A distributed socket communication framework for building real-time applications.

composer require workerman/gateway-worker
INSTALL
IMPORT
SIG · WORKERMAN-GATEWAY-
W
workerman-gateway-worker
networkingphpv4.0.1
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.

Gateway
use GatewayWorker\Gateway;

Initialize and run a GatewayWorker gateway server.

<?php use GatewayWorker\Gateway; $gateway = new Gateway('websocket://0.0.0.0:8282'); $gateway->name = 'ChatGateway'; $gateway->count = 4; $gateway->lanIp = '127.0.0.1'; $gateway->startPort = 2900; $gateway->registerAddress = '127.0.0.1:1238'; Gateway::runAll();
Debug
Known issues
breakingRequires PHP 7.0+ and the pcntl extension for process management.
fix
Ensure pcntl is installed and enabled in your PHP CLI configuration.
affects: >=4.0.0
Upgrade
Version history
4.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
42
OpenAI (training)
1
Resources
workerman-gateway-worker — pip install workerman-gateway-worker · libregistry