Registry / async / amphp-amp

amphp-amp

JSON →
library3.1.1phppackagistunverified

A non-blocking concurrency framework for PHP applications, enabling async programming.

composer require amphp/amp
INSTALL
IMPORT
SIG · AMPHP-AMP
A
amphp-amp
asyncphpv3.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Loop
use Amp\Loop;

Run a simple async coroutine.

use Amp\Loop; Loop::run(function () { echo 'Hello, async world!'; });
Debug
Known issues
breakingVersion 3.x has breaking API changes from 2.x, including removal of Amp\call.
fix
Use Amp\async or Amp\defer instead of Amp\call.
affects: >=3.0.0
Upgrade
Version history
3.1.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
36
Resources
amphp-amp — pip install amphp-amp · libregistry