jjsquady / smart-progressbar
此包最新版本(0.1.1)没有提供许可证信息。
0.1.1
2017-05-02 09:19 UTC
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2024-09-26 06:19:33 UTC
README
这是一个小型的研究项目,旨在使进度条更智能 :D
第一个目标是创建一个ConsoleProgressBar,这使得查看任务进度更加容易。
安装
via composer:
composer require jjsquady/smart-progressbar
使用方法
$someLength = 10000;
$progressBar = ConsoleProgressBar::init($someLength);
// Inside the task
echo $progressBar->update($currentLength)->render();
//or
echo $progressBar->increment($amountLength)->render();
输出
// the output render some like
[======> ] (25%) 2500/10000 Lines. Remaining 2 sec. Elapsed 5 sec.
这就完成了!谢谢!
许可证 MIT。