Re: [PHP-DEV] [Discussion] Native terminal helpers for PHP CLI
[email protected] (Pratik Bhujel) Thu, 16 Jul 2026 21:02:55 +0545
| Newsgroups | php.internals |
|---|---|
| Message-ID | <CA+9BsNdx3eCy5Q5sx_Gft4K9t5GC4fPH0C18bvp3Yhmn8RCGPw@mail.gmail.com> |
Hi Derick, Thanks, that is helpful. I have made both changes now. The extension is at v0.6.0: https://github.com/prateekbhujel/php-terminal/releases/tag/v0.6.0 The stream-aware methods now accept existing PHP stream resources as well as the enum defaults, so calls can use STDOUT, STDERR, STDIN, or php://stdout/php://stderr where the underlying stream can be mapped to a native descriptor/handle. The enum API is still kept as the convenient default. I also published it through Packagist for PIE: pie install prateekbhujel/php-terminal Thanks again for taking another look. Regards, Pratik