revolt/event-loop
Revolt is a rock-solid event loop for PHP 8.1+ that enables cooperative multitasking with fibers and non-blocking I/O while keeping code synchronous. A lightweight scheduler foundation for concurrent apps and libraries like Amp and ReactPHP.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| amphp/amp | AMPHP (AMP) accelerates PHP concurrency with fibers, eliminating callbacks and generators. Built on PHP 8.1’s cooperative coroutines, it lets you run async tasks like sync code—ideal for I/O-bound apps. Use Amp\async() for parallel execution and Future::await() to handle results seamlessly. No event... | 4,431 | 4,439 | 257 | 4M | 15 | 62.5 | 53.5 | MIT | 1 month ago | |
| amphp/byte-stream | Event-driven byte stream abstractions for PHP 8.1+ in the AMPHP ecosystem. Provides ReadableStream/WritableStream interfaces plus implementations like Payload, buffers, resource/iterable streams, stream chaining, base64 encode/decode, and decompression for fiber-friendly I/O. | 394 | 393 | 28 | 3M | 2 | 12.3 | 54.5 | MIT | 1 year ago | |
| amphp/cache | Non-blocking cache library for Amp-based PHP apps. Provides async cache interfaces and adapters (e.g., in-memory, filesystem, Redis) with TTL support, atomic operations, and PSR-style ergonomics for high-concurrency services. | 130 | 129 | 15 | 3M | 0 | 5.7 | 55.3 | MIT | 2 years ago | |
| amphp/dns | Async DNS resolver for PHP built on Amp. Provides non-blocking hostname lookups, record queries, caching and timeouts with an event loop, ideal for high-concurrency applications and CLI tools needing fast, reliable DNS without blocking I/O. | 194 | 194 | 29 | 3M | 6 | 12.5 | 56.4 | MIT | 1 year ago | |
| amphp/file | Non-blocking file I/O for PHP 8.1+ in the AMPHP ecosystem. Read/write files or stream via async file handles while keeping apps responsive. Uses multi-process by default, with optional eio/uv/parallel drivers when available. | 110 | 111 | 27 | 39K | 6 | 29.4 | 42.9 | MIT | 2 months ago | |
| amphp/http-client | 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. | 730 | 731 | 67 | 958K | 7 | 34.8 | 51.9 | MIT | 2 months ago | |
| amphp/http-server | 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.6 | 49.7 | MIT | 3 weeks ago | |
| amphp/http-server-static-content | AMPHP HTTP server component for efficiently serving static files (assets, downloads) with correct MIME types, caching headers, range requests, and directory handling. Designed for non-blocking, event-driven apps built on amphp/http-server. | 21 | 21 | 12 | 1K | 1 | 4.2 | 25.2 | MIT | 2 years ago | |
| amphp/parallel | True parallel processing for PHP with AMPHP: run blocking tasks in worker processes or threads without blocking the event loop. Provides non-blocking concurrency tools and an easy worker pool API for distributing work; no extensions required (threads optional). | 854 | 859 | 68 | 2M | 20 | 38.3 | 59.1 | MIT | 2 months ago | |
| amphp/phpunit-util | Small utility for simplifying async testing in PHPUnit with AMPHP’s fiber-based concurrency. Integrates seamlessly with AsyncTestCase to run tests as coroutines, ensuring smooth execution of I/O-bound operations like sockets, streams, and HTTP requests. Works with PHP 8.1+. Ideal for testing concurr... | 22 | 22 | 8 | 22K | 1 | 4.8 | 41.2 | MIT | 1 year ago | |
| amphp/pipeline | Fiber-safe concurrent iterators and collection operators for AMPHP. Build pipelines from iterables, map/filter/merge, and consume results from multiple fibers safely using ConcurrentIterator (foreach or manual continue/getValue/getPosition). Requires PHP 8.1+. | 78 | 77 | 6 | 3M | 1 | 25.3 | 64.8 | MIT | 1 week ago | |
| amphp/process | Asynchronous process dispatcher for PHP (AMPHP) built for fibers and concurrency. Start and manage child processes cross-platform, stream stdout/stderr without blocking, set working directory and environment variables, powered by the Revolt event loop and Windows wrapper. | 258 | 257 | 28 | 2M | 10 | 31.7 | 66.1 | MIT | 1 month ago | |
| 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. | 267 | 267 | 37 | 3M | 6 | 29.3 | 64.2 | MIT | 2 months ago | |
| amphp/sync | Async synchronization primitives for Amp PHP: mutexes, semaphores, locks, and a synchronized helper. Coordinate concurrent fibers, ensure mutual exclusion, and cap parallel work (e.g., limit HTTP requests) with simple, safe abstractions. | 192 | 191 | 12 | 3M | 0 | 6.7 | 55.3 | MIT | 1 year ago | |
| amphp/websocket | 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/websocket-client | 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 | |
| amphp/websocket-server | 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 | |
| azjezz/psl | PSL is a modern PHP standard library (PHP 8.4+) inspired by HHVM/HSL. It provides consistent, well-typed APIs for async, collections, networking, I/O, crypto, terminal UI, and data validation—safer, predictable alternatives to PHP’s built-ins. | 1,559 | 1,556 | 90 | 446K | 21 | 45.3 | 47.6 | MIT | 1 month ago | |
| deeep/service-client-bundle | — | 1 | 1 | 1 | 268 | 0 | 11.6 | 32.4 | BSD-3-Clause | 5 months ago | |
| php-standard-library/async | Fiber-based async primitives for PHP: structured concurrency with cooperative multitasking. Run tasks concurrently, manage lifecycles, cancellations, and scopes predictably. Part of PHP Standard Library; docs and guides at php-standard-library.dev. | 2 | 1 | 0 | 31K | 0 | 19.2 | 63.9 | MIT | 1 month ago | |
| php-standard-library/channel | A lightweight PHP standard library component that provides a channel abstraction for passing messages between producers and consumers. Useful for simple concurrency patterns, pipelines, and event-style communication with a minimal, dependency-free API. | 1 | 1 | 0 | 35K | 0 | 18.4 | 63.5 | MIT | 1 month ago | |
| php-standard-library/io | Handle-based I/O abstractions for PHP: composable, testable streams and readers/writers designed to be async-ready. Part of PHP Standard Library, with docs and contribution links available via php-standard-library.dev. | 1 | 1 | 0 | 33K | 0 | 19.0 | 63.8 | MIT | 1 month ago | |
| php-standard-library/php-standard-library | PSL (PHP Standard Library) is a well-typed, centralized API set for PHP 8.4+ covering async, collections, networking, I/O, crypto, terminal UI, and more. It replaces unsafe PHP primitives with predictable, async-ready alternatives and includes composable type-safe validation. | 1,559 | 1,554 | 90 | 278K | 21 | 43.7 | 44.4 | MIT | 1 month ago | |
| revolt/event-loop-adapter-react | Run ReactPHP libraries on the Revolt event loop. This adapter lets you pass React\EventLoop\Loop::get() where a LoopInterface is required, automatically bridging ReactPHP components to Revolt for a single, unified loop. | 18 | 18 | 1 | 9K | 0 | 1.0 | 37.1 | MIT | 2 years ago | |
| symfony/symfony | Symfony is a robust PHP framework and component library for building web apps and APIs. It offers a mature ecosystem, reusable components, strong tooling, and long-term support, powering everything from small sites to large enterprise platforms. | 31,103 | 31,405 | 9,848 | 249K | 313 | 89.0 | 45.0 | MIT | 3 weeks ago | |
| symfony/tui | — | 13 | — | 0 | — | 0 | 18.7 | — | MIT | 3 weeks ago |
How can I help you explore Laravel packages today?