€0.00 — free as in speechtonight's forecast: clear skies over production Cache: warm · Deploys: fair, 0% rollbacks expectedset by moonlight, shipped before dawn · deploy freely Page A2

❦The Daily Commit❦ ☾The Nightly Build☽

Dev news, typeset daily — PHP · AI · The Wider Stack

The developer's evening paper — PHP · AI · The Wider Stack

Wednesday, September 30, 2026 Vol. I — No. 679 · Morning editionLate edition EN DE FR ES

PHP · RFC Watch

PHP 8.7 proposal targets native terminal support

Pratik Bhujel has proposed Io\Terminal for PHP 8.7.

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.

← The Daily CommitThe Nightly Build — Page A1