Skip to content

Commit 33b950a

Browse files
authored
Merge pull request #2 from MaplePHP/develop
Improve guide
2 parents 53532bf + 28d9298 commit 33b950a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
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.
44

5+
![Prompt demo](http://wazabii.se/github-assets/maplephp-prompt-v2.gif)
6+
57
### Table of Contents
68
- [Installation](#installation)
79
- [Usage Example](#usage-example)

examples/example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113

114114
$prompt = $inp->prompt();
115-
$command->progress(1, 100, function($i, $length) {
115+
if($prompt) $command->progress(1, 100, function($i, $length) {
116116
return 20;
117117
});
118118
print_r($prompt);

0 commit comments

Comments
 (0)