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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amphp/http | 0.91 | 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/cluster | 0.89 | amphp/cluster lets PHP applications scale across multiple processes and machines, providing cluster nodes, workers, message passing, job distribution, and synchronization primitives on top of Amp for building resilient distributed systems. | 61 | — | 11 | — | 6 | 2.3 | 1.5 | MIT | 1 year ago |
|
| phasync/phasync | 0.88 | Fiber-based concurrency for PHP 8.1+. phasync provides coroutines, channels, and structured concurrency so you can write simple, readable async code without callbacks—great for I/O-heavy apps, HTTP clients, and parallel tasks. Lightweight and dependency-free. | 244 | 246 | 11 | 1K | 2 | 21.9 | 13.4 | MIT | 2 days ago | |
| amphp/log | 0.88 | 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 | |
| vxm/laravel-async | 0.88 | vxm/laravel-async brings asynchronous and parallel execution to Laravel. Run closures and tasks concurrently with a simple API, await results, handle errors, and cap concurrency—ideal for speeding up slow I/O, reports, and batch jobs without restructuring your app. | 154 | 154 | 31 | 4K | 9 | 4.4 | 22.7 | MIT | 2 years ago | |
| amphp/socket | 0.87 | 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. | 271 | 272 | 39 | 6M | 6 | 30.0 | 64.4 | MIT | 2 months ago | |
| amphp/postgres | 0.87 | 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/thread | 0.87 | 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/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 | |
| amphp/amp | 0.86 | 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. | 4,430 | 4,448 | 259 | 4M | 16 | 59.3 | 54.2 | MIT | 3 months ago | |
| amphp/websocket-server | 0.86 | 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. | 126 | 126 | 18 | 29K | 2 | 5.2 | 32.5 | MIT | 2 years ago | |
| amphp/process | 0.86 | amphp/process is an asynchronous process dispatcher for PHP 8.1+ built on the Revolt event loop. It runs child processes on all major platforms, including Windows, with non-blocking access to stdout and stderr, plus support for custom working directories and environment variables. | 261 | 262 | 29 | 6M | 10 | 34.2 | 67.9 | MIT | 5 days ago | |
| amphp/parallel | 0.86 | 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). | 864 | 859 | 71 | 2M | 20 | 32.6 | 57.0 | MIT | 5 months ago | |
| amphp/websocket | 0.86 | 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 | 2M | 0 | 4.9 | 55.3 | MIT | 2 years ago | |
| amphp/pipeline | 0.86 | 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/sql | 0.86 | 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/parallel-functions | 0.85 | Wrap callables to run in parallel processes/threads with AMPHP. Provides helpers like parallelMap to execute CPU-heavy or blocking tasks concurrently; callable state must be serializable. Built for PHP 8.1+ with fibers-friendly concurrency. | 279 | 280 | 18 | 104K | 4 | 5.0 | 36.1 | MIT | 2 years ago | |
| amphp/byte-stream | 0.85 | 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/http-client | 0.85 | A fully asynchronous HTTP/1 and HTTP/2 client for PHP built on Revolt, with no cURL dependency. It supports concurrent requests, connection pooling, redirects, compression, streaming bodies, cookies, and proxies through a composable interceptor API. | 733 | 735 | 70 | 2M | 7 | 28.8 | 56.7 | MIT | 6 days ago | |
| amphp/cache | 0.85 | 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 |
How can I help you explore Laravel packages today?