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
·
reactphp avatar

reactphp/socket

0
View on GitHub↗
1,285 stars·158 forks·PHP·MIT·0 viewsreactphp.org/socket↗

Socket

This library provides a framework for building event-driven, non-blocking network applications in PHP. It enables the development of asynchronous TCP and TLS servers and clients that manage multiple concurrent connections without stalling the main execution thread. By utilizing an event-loop architecture, the library handles network operations and data exchange through asynchronous streams, ensuring that the application remains responsive during high-throughput tasks.

The project distinguishes itself through its integration with operating system primitives, such as raw file descriptors and Unix domain sockets, which facilitate efficient inter-process communication and compatibility with external process managers. It incorporates advanced connection management features, including automated timeout handling, concurrent connection limits, and latency-reducing optimizations like IPv6 prioritization and domain name lookup caching.

The library covers a broad range of networking capabilities, including secure encrypted communication, incremental data streaming, and non-blocking hostname resolution. These features are exposed through promise-based interfaces, allowing for the orchestration of complex network handshakes and data transfers while maintaining low memory overhead.

Features

  • Asynchronous Socket Libraries - Provides a non-blocking library for building event-driven TCP and TLS socket servers and clients using asynchronous streams in PHP.
  • Asynchronous Network Frameworks - Provides a toolkit for handling high-performance network communication and secure encrypted connections through an event-loop architecture.
  • Asynchronous Network Servers - Builds high-performance, non-blocking TCP and TLS servers that handle many concurrent client connections without stalling the main application process.
  • Event-Driven Networking - Provides a framework for managing concurrent network connections and data streams without blocking the main execution thread of an application.
  • Secure Communication Channels - Provides cryptographic handshakes on standard socket streams to establish encrypted communication channels.
  • Non-Blocking Socket I/O - Utilizes system-level non-blocking socket calls to initiate and accept connections without stalling the application execution flow.
  • Non-Blocking Event Loops - Uses a single-threaded event loop to manage multiple concurrent network connections without blocking the main execution process.
  • Event-Based Stream Processing - Manages high-throughput data exchange by processing incoming and outgoing network chunks incrementally through non-blocking, event-based interfaces.
  • Asynchronous Network Clients - Establishes non-blocking connections to remote services and APIs to exchange data streams while keeping the primary application responsive.
  • Connection and Latency Optimizers - Prioritizes IPv6 addresses and caches domain name lookups to reduce latency and improve connection reliability.
  • Connection Management - Facilitates non-blocking network connections to remote services and sockets, resolving via promises to handle data exchange operations without stalling.
  • Timeout Managements - Automatically aborts unresponsive connection attempts to prevent hanging processes and maintain system responsiveness.
  • Connection Rate Limiting - Enforces limits on the number of simultaneous client connections to protect system resources from exhaustion.
  • Network Data Streaming - Processes incoming and outgoing data chunks incrementally through event-based interfaces to maintain high throughput and low memory usage.
  • Secure Socket Wrappers - Applies transport layer security by wrapping standard network streams in cryptographic layers during the connection handshake process.
  • Duplex Stream Wrappers - Exposes network connections as readable and writable streams to process data chunks incrementally with low memory overhead.
  • Unix Domain Socket Support - Facilitates efficient inter-process communication on the same machine by connecting to or hosting services via local filesystem socket paths.
  • File Descriptor Managers - Interacts with the operating system by listening on raw file descriptors to enable integration with external process managers.
  • Promise-Based Object Resolution - Handles network operations and hostname lookups by returning objects that represent eventual completion of non-blocking tasks.

Star history

Star history chart for reactphp/socketStar history chart for reactphp/socket

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Curated searches featuring Socket

Hand-picked collections where Socket appears.
  • Socket polling interfaces

Open-source alternatives to Socket

Similar open-source projects, ranked by how many features they share with Socket.
  • cloudwego/netpollcloudwego avatar

    cloudwego/netpoll

    4,583View on GitHub↗

    Netpoll is an event-driven network framework and non-blocking I/O library designed to manage concurrent TCP and Unix domain socket connections. It utilizes a non-blocking event loop to monitor file descriptors and trigger callbacks for read and write events, serving as a high-performance socket manager and TCP network poller. The framework optimizes throughput across CPU cores by distributing incoming network connections across multiple pollers. It implements zero-copy networking primitives, using linked buffers and specialized memory management to read and write data while minimizing memory

    Go
    View on GitHub↗4,583
  • 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

    PHPasynchronousevent-drivenhigh-performance
    View on GitHub↗11,547
  • boostorg/beastboostorg avatar

    boostorg/beast

    4,801View on GitHub↗

    Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an asynchronous networking framework designed to compose non-blocking I/O operations and layered stream stacks for managing concurrent network traffic, specifically utilizing the Boost.Asio asynchronous model. The library provides a comprehensive implementation of the HTTP/1.1 and WebSocket protocols. For HTTP, it includes primitives for parsing and serializing messages with support for chunked transfer encoding, incremental body reading, and request pipelining. Its WebSocket implementati

    C++asioasync-programmingboost
    View on GitHub↗4,801
  • azure/dotnettyAzure avatar

    Azure/DotNetty

    4,238View on GitHub↗

    DotNetty is an asynchronous network framework and event-driven networking library for .NET. It is a port of the Netty architecture designed for building high-performance protocol servers and clients. The framework enables the development of network applications that handle concurrent connections and high-throughput data streaming without blocking execution threads. It supports the implementation of custom network protocols through defined encoding and decoding rules. The library utilizes a pipeline-based processing model and non-blocking I/O to manage network traffic. Its architecture incorp

    C#networkingprotocols
    View on GitHub↗4,238
See all 30 alternatives to Socket→

Frequently asked questions

What does reactphp/socket do?

This library provides a framework for building event-driven, non-blocking network applications in PHP. It enables the development of asynchronous TCP and TLS servers and clients that manage multiple concurrent connections without stalling the main execution thread. By utilizing an event-loop architecture, the library handles network operations and data exchange through asynchronous streams, ensuring that the application remains responsive during high-throughput tasks.

What are the main features of reactphp/socket?

The main features of reactphp/socket are: Asynchronous Socket Libraries, Asynchronous Network Frameworks, Asynchronous Network Servers, Event-Driven Networking, Secure Communication Channels, Non-Blocking Socket I/O, Non-Blocking Event Loops, Event-Based Stream Processing.

What are some open-source alternatives to reactphp/socket?

Open-source alternatives to reactphp/socket include: cloudwego/netpoll — Netpoll is an event-driven network framework and non-blocking I/O library designed to manage concurrent TCP and Unix… walkor/workerman — Workerman is an event-driven asynchronous socket framework for PHP. It provides the core components necessary to build… boostorg/beast — Beast is a C++ library for implementing low-level HTTP and WebSocket clients and servers. It functions as an… reactphp/reactphp — ReactPHP is an asynchronous runtime and event-driven I/O framework for PHP. It provides an environment for executing… azure/dotnetty — DotNetty is an asynchronous network framework and event-driven networking library for .NET. It is a port of the Netty… shadowsocks/shadowsocks-libev — shadowsocks-libev is an event-driven network daemon that provides an encrypted SOCKS5 proxy. It functions as a…