jjsquady/smart-progressbar

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

0.1.1 2017-05-02 09:19 UTC

This package is auto-updated.

Last update: 2024-04-26 05:20:13 UTC


README

This a little study project to make a progressbar more smarty :D

The first goal was create a ConsoleProgressBar, that make a more easier see a task progress.

Instalation

via composer:

composer require jjsquady/smart-progressbar

Usage

$someLength = 10000;
$progressBar = ConsoleProgressBar::init($someLength);

// Inside the task
echo $progressBar->update($currentLength)->render();

//or
echo $progressBar->increment($amountLength)->render();

Output

// the output render some like
[======>         ] (25%) 2500/10000 Lines. Remaining 2 sec. Elapsed 5 sec.

Thats it! Thanks!

Licence MIT.