divineomega / php-cli-progress-bar
This package is abandoned and no longer maintained.
The author suggests using the jord-jd/php-cli-progress-bar package instead.
Progress bar for command line PHP scripts
Fund package maintenance!
v4.0.0
2026-02-14 21:40 UTC
Requires
- php: >=5.6
- khill/php-duration: ^1.0
Replaces
- divineomega/php-cli-progress-bar: v4.0.0
README
Progress bar for command line PHP scripts.
Installation
To install, just run the following Composer command.
composer require jord-jd/php-cli-progress-bar
Usage
The following code snippet shows a basic usage example.
$max = 250; $progressBar = new JordJD\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();
