clue/stdio-react
ReactPHP-based STDIO stream wrapper for non-blocking access to STDIN/STDOUT/STDERR. Enables event-driven CLI apps with readable and writable streams, integrating terminal input/output into the ReactPHP loop for async command-line tools.
This package enables building truly interactive, non-blocking CLI tools for PHP applications requiring real-time user input/output handling (e.g., deployment wizards, monitoring dashboards, or internal dev tools). It supports roadmap decisions around enhancing developer tooling by eliminating synchronous bottlenecks in CLI workflows, reducing the need for third-party tools (build vs. buy), and ensuring UTF-8 compatibility for global user bases. Key use cases include scenarios where background tasks must run concurrently with user prompts (e.g., live log streaming with interactive commands) or when building cross-platform CLI utilities that require robust terminal interaction.
Adopt this package when:
Executives: "This lightweight, MIT-licensed package lets us build responsive, professional-grade CLI tools that improve user productivity—like allowing engineers to interact with deployment workflows without freezing the terminal. It reduces reliance on external tools, cuts operational costs, and aligns with our focus on developer experience for internal and customer-facing utilities."
Engineering: "It provides battle-tested async STDIN/STDOUT handling with UTF-8 support via ReactPHP, ideal for complex CLI workflows where non-blocking I/O is critical. Integrates seamlessly into existing ReactPHP ecosystems, has minimal overhead, and avoids reinventing the wheel for terminal interaction logic."
How can I help you explore Laravel packages today?