{"id":88068,"library":"react-stream","title":"ReactPHP Stream","description":"Event-driven readable and writable streams for non-blocking I/O in ReactPHP","status":"active","version":"1.4.0","language":"php","source_language":null,"source_url":"https://github.com/reactphp/stream","tags":["reactphp","stream","non-blocking","event-driven","io"],"install":[{"cmd":"composer require react/stream","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"ReadableResourceStream","correct":"use React\\Stream\\ReadableResourceStream;"}],"quickstart":{"code":"use React\\Stream\\ReadableResourceStream;\nuse React\\EventLoop\\Factory;\n\n$loop = Factory::create();\n$stream = new ReadableResourceStream(STDIN, $loop);\n$stream->on('data', function ($data) {\n    echo 'Received: ' . $data;\n});\n$loop->run();","lang":"php","description":"Create a readable stream from STDIN and listen for data events."},"warnings":[{"fix":"Always attach streams to a ReactPHP event loop.","message":"Requires an event loop to function; streams are non-blocking.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'block':13,21 'driven':5,24 'event':4,23 'event-driven':3,22 'i/o':14 'io':25 'non':12,20 'non-block':11,19 'reactphp':1,16,17 'readabl':6 'stream':2,9,18 'writabl':8","created_at":"2026-06-19T08:26:48.772664+00:00","updated_at":"2026-06-19T08:26:48.772664+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://github.com/reactphp/stream","github":"https://github.com/reactphp/stream","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","networking"],"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}}