library smart-progressbar
jjsquady/smart-progressbar
- Tuesday, May 2, 2017
- by jjsquady
- Repository
- 1 Watchers
- 0 Stars
- 16 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
Smart ProgressBar
This a little study project to make a progressbar more smarty :D, (*1)
The first goal was create a ConsoleProgressBar, that make a more
easier see a task progress., (*2)
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
$php
// the output render some like
[======> ] (25%) 2500/10000 Lines. Remaining 2 sec. Elapsed 5 sec., (*3)
Thats it! Thanks!, (*4)
Licence MIT., (*5)
dev-master
9999999-dev
Sources
Download
The Development Requires
by
zeusjammer