awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

PHP WebSocket Libraries

Ranking updated Jul 13, 2026

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.

PHP WebSocket Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • beyondcode/laravel-websocketsbeyondcode avatar

    beyondcode/laravel-websockets

    5,083View on GitHub↗

    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.

    PHPWebSocket Implementations
    View on GitHub↗5,083
  • walkor/workermanwalkor avatar

    walkor/workerman

    11,547View on GitHub↗

    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.

    PHPEvent-Driven NetworkingHigh-Concurrency NetworkingAsynchronous Network Frameworks
    View on GitHub↗11,547
  • swoole/swoole-srcswoole avatar

    swoole/swoole-src

    18,891View on GitHub↗

    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.

    C++Worker Pool Models
    View on GitHub↗18,891
  • ghedipunk/php-websocketsghedipunk avatar

    ghedipunk/PHP-Websockets

    917View on GitHub↗

    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.

    PHPWebSocket Server FrameworksEvent LoopsWebsocket Connection Managers
    View on GitHub↗917
  • textalk/websocket-phpTextalk avatar

    Textalk/websocket-php

    931View on GitHub↗

    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.

    PHPWebSocket Clients and ServersReal-Time CommunicationConnection Lifecycle Managers
    View on GitHub↗931
  • libevent/libeventlibevent avatar

    libevent/libevent

    11,914View on GitHub↗

    Libevent is a cross-platform library that provides a mechanism for executing callback functions when specific events occur on file descriptors, signals, or timers. It functions as a network event loop framework, enabling the development of applications that manage concurrent network connections and non-blocking input and output operations within a single execution context. The library distinguishes itself by providing a portable abstraction layer that automatically selects the most efficient system-level event notification mechanism available on the host operating system. It includes thread-s

    This is a low-level C event notification library that serves as a foundational building block for network applications, but it is not a PHP-based WebSocket framework or library.

    CAsynchronous Event LoopsEvent Loops
    View on GitHub↗11,914
  • unetworking/uwebsocketsuNetworking avatar

    uNetworking/uWebSockets

    18,888View on GitHub↗

    uWebSockets is a high-performance networking engine providing an HTTP web server and a WebSocket server framework. It implements a multi-threaded event loop architecture to deploy isolated application instances across multiple CPU cores and includes an SSL/TLS network layer for secure, encrypted communication. The project features a dedicated WebSocket pub/sub engine for distributing messages to specific groups of connected clients. It optimizes network throughput through syscall corking to reduce kernel overhead and employs payload compression to minimize data transfer sizes. The system cov

    This is a high-performance C++ networking engine rather than a PHP-based library or framework, meaning it cannot be directly integrated into a PHP application as requested.

    C++Event LoopsTLS/SSL ConfigurationsWebSocket Services
    View on GitHub↗18,888
  • libuv/libuvlibuv avatar

    libuv/libuv

    26,912View on GitHub↗

    libuv is a cross-platform asynchronous I/O library that provides an abstraction layer for event-driven networking, filesystem operations, and system signals. It utilizes a non-blocking event loop to coordinate asynchronous tasks and I/O events across different operating systems. The project features a unified interface for managing TCP, UDP, and DNS resolution, alongside an inter-process communication layer for sharing sockets via named pipes and Unix domain sockets. To prevent blocking the main execution loop, it includes a multi-platform thread pool for offloading computationally expensive

    This is a low-level C library for asynchronous I/O that serves as a foundational building block for networking, but it is not a PHP-specific WebSocket framework or library.

    CAsynchronous Event LoopsEvent Loops
    View on GitHub↗26,912
  • encode/starletteencode avatar

    encode/starlette

    12,397View on GitHub↗

    Starlette is an asynchronous web framework and toolkit for building high-performance web services based on the ASGI specification. It serves as a lightweight foundation for creating web applications with a focus on asynchronous request and response handling. The framework provides specialized toolkits for managing persistent bidirectional WebSocket communication and an asynchronous HTTP server toolkit for routing and middleware. It distinguishes itself by offering a non-blocking background task queue that executes functions after a response has been sent to the client. The project covers a b

    This is a Python-based asynchronous web framework, not a PHP library, making it the wrong language and ecosystem for your requirements.

    PythonAsynchronous Event LoopsWebSocket Implementations
    View on GitHub↗12,397
  • zhaojh329/rttyzhaojh329 avatar

    zhaojh329/rtty

    4,018View on GitHub↗

    rtty is a web-based SSH terminal manager and secure gateway designed for remote device administration. It provides a browser interface for accessing Linux shells, managing remote files through binary streams, and routing network traffic to internal device web pages via an HTTP proxy tunnel. The system features a secure gateway using mutual TLS authentication and SSL encryption to protect data transmissions. It includes session orchestration tools for multi-session state management, enabling split-view monitoring and the execution of batch commands across multiple connected devices simultaneou

    This is a C-based remote device management and terminal access tool that uses WebSockets for its transport layer, but it is a standalone application rather than a PHP library or framework for building WebSocket services.

    CSSL Encryption
    View on GitHub↗4,018
  • ithewei/libhvithewei avatar

    ithewei/libhv

    7,521View on GitHub↗

    libhv is a high-performance C/C++ network library and event-driven I/O framework used to build TCP, UDP, SSL, HTTP, WebSocket, and MQTT clients and servers. It provides a non-blocking event loop for managing network sockets, timers, and system signals across multiple threads. The project is distinguished by its integrated support for specialized network roles, including a full HTTP web server with RESTful routing and middleware, an MQTT messaging client for IoT communication, and the ability to implement SOCKS5 and HTTP proxies. It also features a reliable UDP implementation to ensure ordered

    This is a high-performance C/C++ network library rather than a PHP-based framework, meaning it cannot be used directly within a PHP environment to handle WebSocket communication.

    CAsynchronous Event LoopsEvent LoopsWebSocket Services
    View on GitHub↗7,521
  • yudai/gottyyudai avatar

    yudai/gotty

    19,407View on GitHub↗

    Gotty is a web-based terminal emulator that functions as a secure remote shell gateway. It exposes command-line processes as interactive web applications, allowing users to access and manage terminal sessions directly through a standard browser without requiring local terminal software. The system distinguishes itself by integrating with terminal multiplexers to enable shared, real-time collaboration among multiple remote clients. It enforces security through a combination of TLS-encrypted network transport and configurable access control mechanisms, including basic authentication and client

    This is a Go-based terminal emulator application that uses WebSockets for its transport layer, but it is a finished tool rather than a PHP library or framework for building WebSocket applications.

    GoWebSockets
    View on GitHub↗19,407
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
beyondcode/laravel-websockets5.1KPHPMITFeb 7, 2024
walkor/workerman11.5KPHPMITJun 4, 2026
swoole/swoole-src18.9KC++Apache-2.0Jun 8, 2026
ghedipunk/php-websockets917PHPBSD-3-ClauseJun 5, 2020
textalk/websocket-php931PHPNOASSERTIONOct 8, 2025
libevent/libevent11.9KCNOASSERTIONJun 2, 2026
unetworking/uwebsockets18.9KC++Apache-2.0Jun 1, 2026
libuv/libuv26.9KCMITJun 15, 2026
encode/starlette12.4KPythonBSD-3-ClauseJun 17, 2026
zhaojh329/rtty4KCMITMay 7, 2026

Related searches

  • a lightweight javascript library for websockets
  • a WebSocket library for real-time servers in Go
  • a lightweight library for Java WebSockets
  • a library for implementing WebSockets in Rust
  • a C# library for implementing WebSockets
  • a message queue library for PHP
  • a library for scheduling tasks in PHP
  • a real-time chat application using WebSockets