Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

randi2kewl/ProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP ProgressBar

Current implementation is for PHP only. Other languages to come (feel free to contribute).

This is a CLI progress bar to tell you how far along you are when going through a large set of date.

Great for multiple database queries. Just get the total number from the number of rows returned.

Getting Started

Include the class into your script.

    include 'ProgressBar.php';

Then instantiate the instance with the total number of cycles to run.

    $progress_bar = new ProgressBar($total_cycles);

Finally, call the update method which updates the progress bar with the total completed so far.

    $progress_bar->update($total_done);

About

PHP CLI progress bar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages