awesome-repositories.com
Blog
awesome-repositories.com

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

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
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

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