For a php library for building websocket servers, the strongest matches are beyondcode/laravel-websockets (This is a dedicated WebSocket server for PHP that), walkor/workerman (Workerman is a high-performance, event-driven PHP framework that provides) and swoole/swoole-src (Swoole is a high-performance, event-driven PHP extension that provides). ghedipunk/php-websockets and textalk/websocket-php round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best php websocket libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
This is a self-hosted WebSocket server for Laravel applications designed to provide real-time communication and replace third-party managed messaging services. It provides a server-side PHP implementation of the WebSocket standard, enabling full-duplex communication between clients and servers. The project implements a Pusher-compatible protocol to integrate with existing frontend client libraries. It includes a dedicated debug dashboard for monitoring active connections, tracking network traffic, and analyzing real-time server performance. The system supports Laravel event broadcasting and
This is a dedicated WebSocket server for PHP that provides real-time, bidirectional communication and integrates directly with Laravel, though it uses a Pusher-compatible protocol rather than WAMP.
Workerman is an event-driven asynchronous socket framework for PHP. It provides the core components necessary to build high-concurrency network servers, including an asynchronous TCP framework, a coroutine library for task management, and dedicated implementations for HTTP and WebSocket servers. The project enables the development of specialized network services using custom frame-based communication protocols. It supports both inbound concurrent server implementation and asynchronous outbound connectivity to remote services. The framework covers a broad range of network programming capabili
Workerman is a high-performance, event-driven PHP framework that provides native support for WebSocket and WSS protocols, multi-process management, and asynchronous networking, making it a comprehensive solution for building real-time bidirectional communication servers.
Swoole is a coroutine-based concurrency library and IO framework for PHP. It provides a system for building high-performance network servers and applications by bringing asynchronous, event-driven, and coroutine-based concurrency to the PHP runtime. The project distinguishes itself by implementing user-space coroutine scheduling and non-blocking IO interception, which transforms standard blocking network and file operations into asynchronous actions. It further enables high-speed data exchange across multiple PHP processes through shared memory management and specialized data structures. The
Swoole is a high-performance, event-driven PHP extension that provides the necessary asynchronous infrastructure and native WebSocket server capabilities to enable real-time, bidirectional communication.
PHP-Websockets is a network programming library that provides a persistent server implementation for handling bidirectional real-time communication. It functions as a framework for managing asynchronous data exchange between web clients and server-side application logic, enabling the development of responsive systems that react to incoming messages. The library facilitates the hosting of WebSocket servers by managing persistent connections and pushing live updates to users. It handles the technical requirements of the protocol, including the validation of upgrade requests through handshake ne
This is a standalone WebSocket server implementation in PHP that provides the core protocol support required for bidirectional communication, though it lacks the advanced features like WAMP or built-in multi-process management found in more comprehensive frameworks.
This project is a PHP library designed for establishing persistent, bidirectional communication channels using the WebSocket protocol. It functions as both a client and a server implementation, providing the necessary tools to initiate connections with remote endpoints or host custom messaging services. The library manages the full lifecycle of network connections, including the initial HTTP handshake negotiation required to upgrade standard web traffic to a persistent stream. It utilizes low-level stream resources to handle data flow and incorporates automated heartbeat signals to monitor co
This library provides a direct implementation of the WebSocket protocol for both client and server roles in PHP, making it a suitable tool for enabling bidirectional communication.