Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Jun 04:34
· 17 commits to main since this release
a67a803

v0.2.0

Production-oriented release for PHP CLI prompt/framework integration.

Added

  • terminal_enable_ansi() for ANSI/VT output enablement.
  • terminal_read_secret() for hidden password/secret input.
  • examples/doctor.php to verify extension loading, TTY detection, ANSI support, terminal size, key reads, and secret input.
  • CHANGELOG.md.

Improved

  • Raw mode keeps normal prompt output usable while input is read one key at a time.
  • Windows key reads restore console mode after each read.
  • POSIX key reads return complete UTF-8 sequences.
  • Stream writes are hardened against zero-byte progress and partial Windows writes.
  • PHPT coverage now includes common keys, UTF-8 keys, raw-mode output processing, and secret input.

Windows binaries

Attached builds cover PHP 8.2, 8.3, 8.4, and 8.5 on x64, TS and NTS.

Verification

  • Local XAMPP PHP 8.2.4 x86_64 build: 9/9 tests passed.
  • GitHub CI passed on Unix PHP 8.2, 8.3, 8.4, 8.5, nightly.
  • GitHub CI passed on Windows PHP 8.2, 8.3, 8.4, 8.5, master, TS/NTS x64.
  • Release workflow built and uploaded all Windows DLL zips.

Note

Windows is CI build-validated. Real interactive console testing in PowerShell, Cmd, and Windows Terminal is still useful for final field confidence.