library php-cli-progress-bar
Progress bar for command line PHP scripts
divineomega/php-cli-progress-bar
Progress bar for command line PHP scripts
- Friday, April 20, 2018
- by DivineOmega
- Repository
- 1 Watchers
- 2 Stars
- 406 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 74 % Grown
⏱ PHP CLI Progress Bar
Progress bar for command line PHP scripts., (*1)
, (*2)
Installation
To install, just run the following Composer command., (*3)
composer require divineomega/php-cli-progress-bar
Usage
The following code snippet shows a basic usage example., (*4)
$max = 250;
$progressBar = new DivineOmega\CliProgressBar\ProgressBar;
$progressBar->setMaxProgress($max);
for ($i=0; $i < $max; $i++) {
usleep(200000); // Instead of usleep, process a part of your long running task here.
$progressBar->advance()->display();
}
$progressBar->complete();
dev-master
9999999-dev
Progress bar for command line PHP scripts
Sources
Download
LGPL-3.0-only
The Requires
by
Jordan Hall
v2.0.0
2.0.0.0
Progress bar for command line PHP scripts
Sources
Download
LGPL-3.0-only
The Requires
by
Jordan Hall
v1.0.1
1.0.1.0
Progress bar for command line PHP scripts
Sources
Download
LGPL-3.0-only
The Requires
by
Jordan Hall
v1.0.0
1.0.0.0
Progress bar for command line PHP scripts
Sources
Download
LGPL-3.0-only
The Requires
by
Jordan Hall