2017 © Pedro Peláez
 

library php-cli-progress-bar

Progress bar for command line PHP scripts

image

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

The README.md

⏱ PHP CLI Progress Bar

Progress bar for command line PHP scripts., (*1)

Example of PHP CLI Progress Bar, (*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();

The Versions

20/04 2018

dev-master

9999999-dev

Progress bar for command line PHP scripts

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall

20/04 2018

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

29/03 2018

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

28/03 2018

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