{"id":89843,"library":"hyperf-context","title":"Hyperf Context","description":"A coroutine/application context library.","status":"active","version":"3.2.0","language":"php","source_language":null,"source_url":"https://github.com/hyperf/context","tags":["hyperf","coroutine","context","async"],"install":[{"cmd":"composer require hyperf/context","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Context","correct":"use Hyperf\\Context\\Context;"}],"quickstart":{"code":"use Hyperf\\Context\\Context;\n\nContext::set('key', 'value');\n$value = Context::get('key');","lang":"php","description":"Store and retrieve values in the coroutine context"},"warnings":[{"fix":"Use only in Hyperf applications or with Swoole/Swow","message":"Only works within Hyperf coroutine environment; not standalone","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':10 'context':2,5,9 'coroutin':8 'coroutine/application':4 'hyperf':1,7 'librari':6","created_at":"2026-06-19T08:53:39.580707+00:00","updated_at":"2026-06-19T08:53:39.580707+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://hyperf.io","github":"https://github.com/hyperf/context","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}