PHP is mostly used to develop Web applications. However, PHP can also be used perfectly to develop command line applications.
ncurses is a popular library for developing text console based applications. The ncurses extension provides means to use the ncurses library to develop PHP applications with text based user interfaces.
This class uses the ncurses extension to quickly develop and handle common text based dialog types.
Add nCurses style text menus and screens to your PHP CLI scripts.
It uses the ncurses extension to create several types of dialog windows like check lists, boolean choices, menus, text inputs, notice alerts, and message box.
The class displays the dialogs and waits for the user input. In the cases that the user needs to make a choice, the class returns the choice that was made.