coexp/wunder-bar

Beautiful console progressBar

v0.2.0 2019-10-18 15:34 UTC

This package is auto-updated.

Last update: 2021-09-21 21:34:01 UTC


README

build: Code Quality Code Coverage

License

wUnderBar

This package helps to implement Symfony/ProgressBar on multiple line. Progressbar is print on stdout, and not stdError by default

Examples

Set two progressbar:

 $mb = (new MultipleBar($this->output))
    ->setTitle('wUnderBar Example #1')
    ->addProgressBarByName(['Master', 'Child']);

Advance:

$mb->getProgressBarByName('Child')->advance();
$mb->getProgressBarByName('Master')->advance();
$mb->show();

Finish by erasing bar:

$mb->erase();