jjsquady / smart-progressbar
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/jjsquady/smart-progressbar
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2025-09-26 08:44:32 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.