klepak/console-progress-bar

There is no license information available for the latest version (v1.0) of this package.

Class to output a console progress bar with various options.

v1.0 2019-05-23 11:05 UTC

This package is auto-updated.

Last update: 2024-12-23 22:54:27 UTC


README

Outputs a progress bar to console.

Example

$progress = (new ConsoleProgressBar)
            ->max(5)
            ->message('Test')
            ->unit('Things')
            ->padding(1, 2); # top, bottom

sleep(1);

$progress->update(3);

sleep(1);

$progress->completed();