An open API service indexing awesome lists of open source software.

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

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.