Download the PHP package bear/async without Composer
On this page you can find all versions of the php package bear/async. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package async
BEAR.Async
Parallel execution of #[Embed] resources for BEAR.Sunday.
These three embeds run in parallel. The resource code does not change; you pick the execution mode at the application boundary.
Installation
Execution modes
| Server | Requires | Application change |
|---|---|---|
| PHP-FPM / Apache | ZTS PHP + ext-parallel | add bin/async.php (see manual) |
| Swoole HTTP Server | ext-swoole / ext-openswoole | add a swoole context module that installs AsyncSwooleModule; boot on the compiled injector (see manual) |
Without either extension the same code runs sequentially. A missing extension
fails at configure() with ExtensionNotLoadedException; there is no silent
fallback.
Documentation
- Manual: Parallel Resource Execution — setup, constraints, pool sizing, failure semantics, how it works (日本語)
- Demo guide — Docker-based demo for sequential, ext-parallel, and Swoole
- Benchmark results — cold CLI and steady-state HTTP measurements
- Parallel execution architecture
Demo
Requirements
PHP 8.2+. Each execution mode adds its own extension requirement (table above).
All versions of async with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
aura/sql Version ^5.0 || ^6.0
bear/app-meta Version ^1.6
bear/package Version ^1.14
bear/resource Version ^1.32
ray/di Version ^2.18
aura/sql Version ^5.0 || ^6.0
bear/app-meta Version ^1.6
bear/package Version ^1.14
bear/resource Version ^1.32
ray/di Version ^2.18
The package bear/async contains the following files
Loading the files please wait ...