Download the PHP package programster/cli-menu without Composer
On this page you can find all versions of the php package programster/cli-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download programster/cli-menu
More information about programster/cli-menu
Files in programster/cli-menu
Download programster/cli-menu
More information about programster/cli-menu
Files in programster/cli-menu
Vendor programster
Package cli-menu
Short Description Cli Menu code for writing CLI applications in PHP 5.3+
License none
Homepage http://blog.programster.org/
Package cli-menu
Short Description Cli Menu code for writing CLI applications in PHP 5.3+
License none
Homepage http://blog.programster.org/
Please rate this library. Is it a good library?
Informations about the package cli-menu
CLI Menu
This package makes it simple to create menus in the CLI for terminal applications. There are two primary types.
- Action Menu - print out a list of options and the options fire a callback that does something. E.g. exit the program or process a file.
- Value Menu - prompt the user to make a choice from a limited set. E.g. output a list of the local files, and have the user select one by typing in the menu option index instead of a full path.
Install
Install the package with:
Example Code
Action Menu
Here is some code demonstrating that you can build an action menu out of simple clusures, or even invokable objects:
Value Menu
Here is a basic example where we get the user to pick the number of seconds they wish for:
All versions of cli-menu with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
The package programster/cli-menu contains the following files
Loading the files please wait ....