Ncurses based terminal ui library for PHP applications. Works with PHP 5.4 or newer.
- Checklist [one column of checkboxes]
- Confirm [a basic yes/no prompt]
- Inputbox [supports multiple fields]
- Menu [a select box with up to two columns of descriptive information]
- Messagebox [transition screen on a timer]
- Notice [an alert with an "ok" button]
- You'll need to install PHP-CLI 5.4+
- You'll need to install the ncurses extension for PHP. See here for how to do that in PHP 7+.
To see if you have the ncurses extension installed:
$ php -m
If not listed, you'll need to:
pecl install ncurses
- I didn't upload this to Packagist, because you can install directly from Github by adding the following to your composer.json:
"require": {
"tecfu/php_ncurses": "*"
},
"repositories": [
{
"url":"https://github.com/tecfu/php_ncurses.git",
"type":"git"
}
]
GNU General Public License v3.0
Copyright (c) 2007 - 2017. J Randolph Smith, jesuschristsuperstar, tecfu, et. al.