samuelweekes / phui
A PHP library for building terminal user interfaces (TUIs) with a component-based, reactive API
v0.1.0
2026-08-11 14:18 UTC
Requires
- php: ^8.2
Requires (Dev)
- laravel/pint: ^1.21
- mockery/mockery: ^1.6
- pestphp/pest: ^3.8
- phpstan/phpstan: ^2.2
Suggests
- ext-pcntl: Enables graceful terminal restoration on Ctrl+C and SIGTERM
- phpunit/phpunit: Required to use the Phui\Testing\TestScreen harness (included with Pest)
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-11 14:28:59 UTC
README
A PHP library for building terminal user interfaces (TUIs) with a component-based, reactive API. Phui is pre v1.0 and under active development. The core framework is fairly stable, but likely to change in some areas.
Requirements
- PHP 8.2+
- Linux, macOS, or WSL — native Windows terminals are not yet supported
Installation
composer require samuelweekes/phui
Documentation
Full documentation lives at
samuelweekes.github.io/phui,
with the source in docs/.
Contributing
Phui is looking for contributors and co-maintainers — see CONTRIBUTING.md for how to get involved.