The Daily Commit · Section Edition Front Page PHP AI Dev EN DE FR ES

The Php Times

RFC Watch — Ecosystem

PHP 8.7 proposal targets native terminal support


Pratik Bhujel has proposed Io\Terminal for PHP 8.7.

PHP INTERNALS ([RFC]/[VOTE]), September 27, 2026 curated by Sönke

The API would add native terminal sessions, size detection, safe raw mode, normalized key input, and hidden input to ext/standard. A reduced implementation is under review in php-src pull request 23941. The RFC uses Time\Duration and seeks feedback before voting.

Pratik Bhujel has submitted an RFC for Io\Terminal, a proposed API for PHP 8.7. It would place a compact terminal interface in ext/standard. The planned capabilities cover terminal sessions, native terminal-size queries, raw mode with safe restoration, normalized key input, and hidden input.

The proposal follows an earlier php-internals discussion about native terminal helpers. Symfony Console and TUI integration helped focus the core on functionality that needs cross-platform native support. The RFC also consolidates earlier discussion whose replies were split across separate archive threads.

A reference implementation already exists as ext-terminal, distributed through PIE and Packagist under prateekbhujel/php-terminal. A draft php-src implementation is available in pull request 23941. The draft follows the reduced core API and omits the full ext-terminal 1.x surface.

The core design uses Time\Duration for timeout values. It has no public constructor and initially excludes compatibility aliases, environment-based terminal-size fallbacks, and convenience APIs. Bhujel is asking for feedback before the vote.

Read the original source ↗

Rate this article: 0

Readers’ Forum

No contributions yet — open the debate.

← Ecosystem — Page B1

"All the Code That's Fit to Ship" · The Daily Commit · Screen edition · Imprint · Privacy Policy