Re: Re: [PHP DEV] [Discussion] Native terminal helpers for PHP CLI
| From: | Larry Garfield | Date: | Thu, 17 Sep 2026 13:58:44 +0000 |
| Subject: | Re: Re: [PHP DEV] [Discussion] Native terminal helpers for PHP CLI | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132525@lists.php.net to get a copy of this message | ||
On Wed, Sep 16, 2026, at 11:49 PM, Pratik Bhujel wrote:
> Hi Derick,
>
> Wanted to share a quick update since June.
>
> I ended up implementing your stream suggestions in the v0.6.0 and
> v0.7.0 releases. All methods now accept native stream resources (like
> STDIN, STDOUT, STDERR, and php:// streams) directly alongside the
> enums. I also published it to Packagist, and installing through PIE
> works cleanly now. I also added prebuilt Windows x64 DLLs to the
> releases so folks on Windows can test without compiling from source.
>
> My main motivation is still Windows CLI support. Tools like Laravel
> Prompts and Symfony Console still drop into dumb text fallbacks on
> Windows simply because core has no native raw mode or single key
> reading primitives.
>
> Now that the PIE package is working across Linux, macOS, and Windows, I
> wanted to check if you think this is worth bringing up as an RFC for
> 8.5 or 8.6, or if it is better to keep gathering feedback through PIE
> first?
>
> Thanks,
> Pratik
At this point it would be an RFC for 8.7, as 8.5 is already released and 8.6 is frozen.
As I've not used it yet I cannot speak to when an RFC would be appropriate. However, I will
note that libraries moving from PECL to php-src in the past have often undergone changes in the
process, so they're not a direct transfer/rename. Whether that is an argument to move it to
core sooner or later I leave as an exercise for the reader. (I could likely argue either way,
really.)
--Larry Garfield