nowise / uup-progressbar
Progress bar for CLI applications
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nowise/uup-progressbar
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-09-29 02:58:52 UTC
README
Progress bar for console (CLI) applications.
$progress = new ProgressBar(); for ($i = 1; $i <= 100; ++$i) { $progress->addIncrement($i); }
Displays percentage completed, spinner and progress bar. An optional message can also be passed for each tick.
68% [\] ============== : Importing file5483.txt
The start-/end-values are can be chosen as likes. Custom labels are displayed when increment value equals the start- or end-value:
0% [*] Waiting... 100% [+] Finished!
The length of the progress bar and indicator character can also be customized.