Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

PHP Prompts is an interactive, lightweight, and easy-to-use CLI (Command Line Interface) PHP library. It provides a way to create and manage user prompts in a command-line environment, enabling the collection of various types of user input with validation and feedback.

![Prompt demo](http://wazabii.se/github-assets/maplephp-prompt-v2.gif)

### Table of Contents
- [Installation](#installation)
- [Usage Example](#usage-example)
Expand Down
2 changes: 1 addition & 1 deletion examples/example.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@


$prompt = $inp->prompt();
$command->progress(1, 100, function($i, $length) {
if($prompt) $command->progress(1, 100, function($i, $length) {
return 20;
});
print_r($prompt);
Expand Down