Download the PHP package elementaryframework/async without Composer
On this page you can find all versions of the php package elementaryframework/async. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download elementaryframework/async
More information about elementaryframework/async
Files in elementaryframework/async
Download elementaryframework/async
More information about elementaryframework/async
Files in elementaryframework/async
Vendor elementaryframework
Package async
Short Description A full-featured PHP library for asynchronous operations with support for promises, fibers, and modern async patterns.
License MIT
Package async
Short Description A full-featured PHP library for asynchronous operations with support for promises, fibers, and modern async patterns.
License MIT
Please rate this library. Is it a good library?
Informations about the package async
ElementaryFramework Async Library
A full-featured PHP library for asynchronous operations with support for promises, fibers, and modern async patterns. Built for PHP 8.4+.
Features
- Promise/A+ Compatible: Full implementation of the Promise/A+ specification
- Fiber-Based Execution: Leverages PHP 8.1+ Fibers for true asynchronous operations
- Event Loop: Built-in event loop for managing async operations and timers
- Cancellation Support: Comprehensive cancellation system with tokens and sources
- Promise Combinators:
all(),race(),any(),allSettled()for complex async patterns - Concurrency Control: Pool execution with configurable concurrency limits
- Retry Mechanisms: Built-in retry with exponential backoff
- Utility Functions: Debouncing, throttling, timeouts, and more
- Type Safe: Full PHP generics support with proper type annotations
Requirements
- PHP 8.4 or higher
- Fiber support (available in PHP 8.1+)
- Optional: PCNTL extension for signal-based cancellation
Installation
Quick Start
Basic Promise Usage
Asynchronous Execution
Delay and Timing
Promise Combinators
Concurrency Control
Retry with Exponential Backoff
Cancellation Support
Timeout Cancellation
Debouncing and Throttling
Error Handling
Advanced Usage
Custom Deferred
Signal-Based Cancellation
Combining Cancellation Tokens
Function-Level API
For convenience, the library also provides global functions:
Testing
License
This library is released under the MIT License. See LICENSE file for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
Changelog
See CHANGELOG.md for version history and changes.
All versions of async with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
The package elementaryframework/async contains the following files
Loading the files please wait ...