PHP Classes

Console Progress Bar: Draw a progress bar in ANSI console

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 1,313 All time: 2,938 This week: 455Up
Version License PHP version Categories
console-progress-bar 1.0GNU General Publi...5PHP 5, Console


This class can be used to draw a progress bar in an ANSI console.

It extends the ANSI console class to render a progress bar.

The bar starts in a given console column and display a given percentage next to a bar made of repeated characters that represent the width of the bar relative to the total character width of the bar.

Innovation Award
PHP Programming Innovation award nominee
December 2008
Number 4
Some applications need to execute tasks that may take a long time to execute. Therefore it is useful to show a progress bar, so the user has an idea of how much was done and how much remains to complete the task.

This class provides means to render a progress bar for tasks executed by shell based applications that run on ANSI consoles.

Manuel Lemos
Picture of Alex B. Snet
Name: Alex B. Snet is available for providing paid consulting. Contact Alex B. Snet .
Classes: 6 packages by
Country: Russian Federation Russian Federation
Age: 34
All time rank: 3469 in Russian Federation Russian Federation
Week rank: 225 Up11 in Russian Federation Russian Federation Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file progressbar.php Class Class 684
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Console Download .zip .tar.gz This package is extending for Console class Recommended
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,938
This week:455Up
User Ratings User Comments (1)
 All time
Neat, clean , really easy to implement.
15 years ago (michel beaussart)