amphp/amp
amphp/amp provides futures and cancellations as core primitives for asynchronous PHP. Built on PHP 8.1 fibers and Revolt, it lets you write concurrent code that reads like synchronous code, using Amp\async() and Future::await() without callbacks.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amphp/uri | 0.92 | — | 23 | 23 | 7 | 9K | 2 | 2.2 | 35.7 | MIT | 7 years ago | |
| fabpot/amphp-sqlite3 | 0.91 | fabpot/amphp-sqlite3 provides asynchronous, non-blocking access to SQLite3 databases for Amp-based PHP applications, using promises and coroutines so queries can run without blocking the event loop. | 7 | 6 | 3 | 16K | 0 | 0.2 | 45.7 | MIT | — | |
| amphp/parser | 0.89 | Streaming parser helper for AMPHP: build incremental, generator-based parsers for line-, delimiter-, or length-based protocols. Feed data via Parser::push(); yield a delimiter string, byte length, or null to flush/await more input. PHP 7.4+ compatible. | 156 | 152 | 4 | 3M | 1 | 1.9 | 55.2 | MIT | 2 years ago | |
| amphp/hpack | 0.89 | Fast HPACK (HTTP/2 header compression) implementation for PHP by amphp. Provides efficient encoding/decoding of header blocks with dynamic tables, Huffman coding, and compliance-focused behavior, suitable for high-performance HTTP/2 clients and servers. | 109 | 109 | 7 | 1M | 1 | 19.2 | 61.9 | MIT | 6 months ago | |
| amphp/thread | 0.89 | Thread-local storage for Amp applications. Store and retrieve values scoped to the current fiber or thread, keeping state isolated across concurrent tasks and preventing leaks between async operations. A small utility for safer context handling in Amp-based PHP apps. | 294 | — | 21 | — | 0 | 1.1 | — | MIT | 12 years ago |
|
| amphp/byte-stream | 0.89 | 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. | 396 | 395 | 30 | 6M | 2 | 32.2 | 64.8 | MIT | 6 days ago | |
| amphp/log | 0.89 | Amp’s minimal PSR-3 compatible logging library with a simple Logger interface and built-in handlers. Designed for async apps, it integrates cleanly with the amphp ecosystem while remaining lightweight and easy to extend with custom log targets and formatters. | 40 | 40 | 5 | 80K | 3 | 2.9 | 45.6 | MIT | 3 years ago | |
| amphp/serialization | 0.88 | AMPHP serialization tools for IPC and storage in PHP. Provides a Serializer interface with JSON, native PHP serialize/unserialize, and passthrough implementations, plus optional payload compression via a wrapping serializer. | 140 | 137 | 3 | 3M | 1 | 10.4 | 59.5 | MIT | 7 months ago | |
| amphp/cache | 0.88 | 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. | 134 | 133 | 15 | 6M | 0 | 5.7 | 55.3 | MIT | 2 years ago | |
| 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. | 105 | 105 | 10 | 3M | 1 | 7.9 | 55.2 | MIT | 1 year ago | |
| amphp/postgres | 0.88 | Asynchronous, non-blocking PostgreSQL client for PHP built on Amp. Supports connection pooling, prepared statements, transactions, and concurrent queries, making it ideal for high-performance event-driven applications. | 107 | — | 22 | — | 5 | 9.3 | 2.4 | MIT | 8 months ago |
|
| amphp/sql | 0.88 | 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. | 21 | 20 | 5 | 38K | 1 | 11.5 | 47.6 | MIT | 8 months ago | |
| amphp/file | 0.88 | amphp/file provides non-blocking file access for PHP 8.1+ applications built with fibers and concurrency. Read, write, and stream files without blocking, using process, thread, or extension-based drivers for responsive I/O. | 110 | 111 | 27 | 70K | 5 | 23.0 | 46.1 | MIT | 5 months ago | |
| amphp/sync | 0.88 | 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. | 197 | 195 | 12 | 6M | 0 | 26.6 | 65.0 | MIT | 6 days ago | |
| amphp/pipeline | 0.87 | amphp/pipeline provides fiber-safe concurrent iterators and collection operators for AMPHP event-driven PHP apps. Consume asynchronous sets with foreach, yield from, or iterator_to_array across multiple fibers. Requires PHP 8.1+; install via composer require amphp/pipeline. | 84 | 77 | 6 | 3M | 1 | 21.1 | 62.6 | MIT | 3 months ago | |
| amphp/artax | 0.87 | 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.5 | MIT | — | |
| amphp/http-tunnel | 0.87 | AMPHP HTTP Tunnel provides asynchronous HTTP tunneling for PHP using Amp, enabling CONNECT-based proxy tunneling and transparent TCP-over-HTTP streams. Useful for building clients that need to reach services through HTTP proxies with non-blocking I/O. | 13 | 13 | 4 | 45K | 1 | 20.9 | 56.7 | MIT | 1 week ago | |
| amphp/http-server-static-content | 0.87 | 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. | 22 | 22 | 10 | 3K | 0 | 23.8 | 34.5 | MIT | 5 days ago | |
| amphp/phpunit-util | 0.87 | 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 | 18K | 0 | 24.5 | 47.0 | MIT | 6 days ago | |
| amphp/http-server | 0.87 | A non-blocking, concurrent HTTP/1.1 and HTTP/2 application server for PHP built on Revolt and Amp. It forwards requests to RequestHandler implementations and supports middleware, TLS, GZIP compression, and fiber-based concurrency. | 1,326 | 1,327 | 104 | 2M | 11 | 42.6 | 56.3 | MIT | 6 days ago |
How can I help you explore Laravel packages today?