https://github.com/jesuschristsuperstar/php_ncurses
This library is a refactor of J Randolph Smith's 2007 nDialog class. Fully functional, ready to use and with examples. PHP 5.4+
https://github.com/jesuschristsuperstar/php_ncurses
box-widget php php-cli php-ncurses widget
Last synced: 6 months ago
JSON representation
This library is a refactor of J Randolph Smith's 2007 nDialog class. Fully functional, ready to use and with examples. PHP 5.4+
- Host: GitHub
- URL: https://github.com/jesuschristsuperstar/php_ncurses
- Owner: jesuschristsuperstar
- License: gpl-3.0
- Created: 2013-06-10T02:47:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-05-15T05:15:28.000Z (almost 5 years ago)
- Last Synced: 2025-04-10T00:14:58.197Z (11 months ago)
- Topics: box-widget, php, php-cli, php-ncurses, widget
- Language: PHP
- Homepage:
- Size: 66.4 KB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Ncurses Widget Library
Ncurses based terminal ui library for PHP applications. Works with PHP 5.4 or newer.
### Widget List
- 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]
---

### Prerequisites
- You'll need to install PHP-CLI 5.4+
- You'll need to install the ncurses extension for PHP. See [here](https://stackoverflow.com/a/47542051/3751385) 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
```
### Composer
- 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"
}
]
```
## License
GNU General Public License v3.0
Copyright (c) 2007 - 2017. J Randolph Smith, jesuschristsuperstar, tecfu, et. al.