Registry / async / php-http-promise

php-http-promise

JSON →
library1.3.1phppackagistunverified

Promise used for asynchronous HTTP requests

composer require php-http/promise
INSTALL
IMPORT
SIG · PHP-HTTP-PROMISE
P
php-http-promise
asyncphpv1.3.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.

FulfilledPromise
use Http\Promise\FulfilledPromise;

Create a fulfilled promise and handle its resolution.

use Http\Promise\FulfilledPromise; $promise = new FulfilledPromise('result'); $promise->then(function ($value) { echo $value; });
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
php-http-promise — pip install php-http-promise · libregistry