amphp/socket
Async, non-blocking socket library for AMPHP. Provides client/server abstractions over TCP, UDP, and Unix domain sockets with DNS resolution, retries, connect timeouts, cancellation, and optional TLS encryption. Implements ReadableStream/WritableStream.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amphp/http | 0.88 | Event-driven HTTP primitives for PHP 8.1+ in the AMPHP ecosystem. Provides shared building blocks for HTTP clients and servers, including IANA status codes with default reasons, RFC 6265 cookie parsing/creation (Set-Cookie/Cookie), and header utilities. | 103 | 103 | 10 | 973K | 1 | 8.0 | 55.2 | MIT | 1 year ago | |
| analogic/socket | 0.86 | Analogic Socket is a PHP package for building lightweight TCP/UDP socket clients and servers. It provides simple APIs for connecting, sending/receiving data, and handling basic networking workflows without pulling in a full framework. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | — | 10 years ago | |
| php-http/socket-client | 0.85 | PSR-7/PSR-18 HTTP client built on PHP streams. Supports TCP and UNIX domain sockets, TLS/SSL encryption, and client certificates. Lightweight, dependency-minimal option for making HTTP requests via socket connections. | 81 | 82 | 42 | 63K | 0 | 17.3 | 43.8 | MIT | 6 months ago | |
| amphp/websocket | 0.85 | Shared WebSocket components for AMPHP’s event-driven, fiber-based concurrency stack. Provides core abstractions used by amphp/websocket-server and amphp/websocket-client to build fast, non-blocking WebSocket clients and servers (PHP 8.1+). | 46 | 46 | 6 | 850K | 0 | 4.9 | 55.3 | MIT | 1 year ago | |
| amphp/http-server | 0.85 | Non-blocking, concurrent HTTP/1.1 and HTTP/2 application server for PHP 8.1+ built on Revolt and Amp (fibers). Includes TLS, middleware, gzip, and integrations for routing, static files, WebSockets, sessions, and more. | 1,325 | 1,325 | 102 | 919K | 11 | 41.5 | 49.6 | MIT | 3 weeks ago | |
| phrity/websocket | 0.84 | PHP WebSocket client and multi-connection server with ws/wss support. Includes listener callbacks, standard Close and Ping/Pong handling, optional deflate compression, fragmentation and masking support, plus middleware system for extending behavior. | 217 | 216 | 23 | 261K | 1 | 30.4 | 49.6 | NOASSERTION | 3 weeks ago | |
| amphp/http-client | 0.84 | Asynchronous HTTP client for PHP built on Revolt and fibers. Supports HTTP/1 & HTTP/2, concurrent requests, connection pooling, redirects, gzip/deflate, streaming bodies, TLS by default, forms, cookies, and proxies—no ext/curl dependency. | 729 | 731 | 67 | 958K | 7 | 34.8 | 51.9 | MIT | 2 months ago | |
| amphp/websocket-server | 0.84 | Async WebSocket server for PHP built on Amp’s event-driven concurrency. Handles upgrades, connections, message streaming, backpressure and graceful shutdown, making it easy to build real-time apps like chat, dashboards and live notifications. | 125 | 125 | 17 | 6K | 2 | 5.1 | 23.4 | MIT | 2 years ago | |
| babdev/websocket-bundle | 0.83 | — | 6 | 6 | 2 | 3K | 0 | 0.2 | 36.9 | NOASSERTION | — | |
| amphp/websocket-client | 0.83 | Async WebSocket client for PHP built on Amp. Connect to ws/wss endpoints with fiber-friendly concurrency, consume realtime APIs, test WebSocket servers, and support custom handshakes, headers, heartbeats, and rate limits. | 164 | 165 | 16 | 855K | 6 | 9.9 | 53.4 | MIT | 10 months ago | |
| cboden/ratchet | 0.83 | Ratchet is a PHP library for building asynchronous WebSocket servers. Compose apps from simple interfaces, reuse components, and deploy behind proxies or on ports 80/443. Includes docs and examples for chat-style real-time messaging. | 6,435 | 6,505 | 791 | 305K | 8 | 45.9 | 25.7 | MIT | 4 years ago | |
| bordeux/websocket-bundle | 0.83 | — | 11 | 11 | 3 | 0 | 1 | 0.4 | — | — | 10 years ago | |
| textalk/websocket | 0.82 | Archived, unmaintained WebSocket client and rudimentary single-connection server for PHP. Provides low-level read/write over WebSocket streams with handshake, close, and ping/pong support. No listeners, threading, or request association. | 931 | 965 | 253 | 200K | 18 | 25.7 | 39.0 | NOASSERTION | 3 years ago | |
| react/socket | 0.82 | Async TCP/IP and TLS socket servers and clients for ReactPHP. Provides streaming, non-blocking connections built on EventLoop and Stream, with reusable interfaces and helpers for TCP, Unix sockets, secure servers, and connectors. | 1,285 | 1,307 | 158 | 6M | 6 | 29.4 | 57.8 | MIT | 8 months ago | |
| amphp/artax | 0.82 | Deprecated (unmaintained) async HTTP/1.1 client for PHP built on Amp. Implements HTTP over raw TCP sockets (no ext/curl), with keep-alive pooling, redirects, gzip decoding, streaming bodies, TLS, cookies, and proxy support. Use amphp/http-client instead. | 23 | 26 | 4 | 5K | 0 | 0.1 | 22.4 | MIT | — | |
| phrity/net-stream | 0.82 | PSR-7 StreamInterface and PSR-17 StreamFactory implementations built for socket-based I/O. Includes Stream, SocketStream, SocketClient/Server, context wrapper, stream collections, and stream-specific exceptions and utilities for network connections. | 5 | 5 | 3 | 275K | 0 | 19.5 | 62.5 | MIT | 3 months ago | |
| amphp/sql | 0.81 | Async SQL library for PHP built on Amp. Provides non-blocking database connections, query execution, and result handling with a consistent API, enabling high-concurrency apps without blocking I/O. Supports common drivers and integrates cleanly with event-loop workflows. | 20 | 20 | 5 | 36K | 1 | 16.9 | 49.6 | MIT | 4 months ago | |
| codememory/ws-server-bundle | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 0.6 | — | MIT | 2 years ago | |
| btba/chat-bundle | 0.80 | Symfony bundle providing a simple chat service with configurable refresh interval and Doctrine entities for authors and messages. Install via Composer, register the bundle, add YAML config and routes, and extend base models to persist chat data. | 1 | 1 | 0 | 0 | 0 | 1.8 | 6.1 | MIT | — |
How can I help you explore Laravel packages today?