Registry / async / hyperf-context

hyperf-context

JSON →
library3.2.0phppackagistunverified

A coroutine/application context library.

composer require hyperf/context
INSTALL
IMPORT
SIG · HYPERF-CONTEXT
H
hyperf-context
asyncphpv3.2.0
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.

Context
use Hyperf\Context\Context;

Store and retrieve values in the coroutine context

use Hyperf\Context\Context; Context::set('key', 'value'); $value = Context::get('key');
Debug
Known issues
gotchaOnly works within Hyperf coroutine environment; not standalone
fix
Use only in Hyperf applications or with Swoole/Swow
affects: >=1.0.0
Upgrade
Version history
3.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
40
Resources
hyperf-context — pip install hyperf-context · libregistry