Re: [Discussion] Native terminal helpers for PHP CLI

From: Date: Thu, 16 Jul 2026 15:17:55 +0000
Subject: Re: [Discussion] Native terminal helpers for PHP CLI
Groups: php.internals 
Request: Send a blank email to internals+get-131974@lists.php.net to get a copy of this message
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

« previous php.internals (#131974) next »