https://github.com/nowisesys/uup-progressbar
Progress bar for CLI applications
https://github.com/nowisesys/uup-progressbar
Last synced: 9 months ago
JSON representation
Progress bar for CLI applications
- Host: GitHub
- URL: https://github.com/nowisesys/uup-progressbar
- Owner: nowisesys
- Created: 2022-01-31T16:24:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T16:25:05.000Z (almost 4 years ago)
- Last Synced: 2025-02-16T08:27:30.205Z (11 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## UUP-PROGRESS-BAR
Progress bar for console (CLI) applications.
```php
$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.
```shell
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:
```shell
0% [*] Waiting...
100% [+] Finished!
```
The length of the progress bar and indicator character can also be customized.