PHP code example of convenient / tiny-progress-bar
1. Go to this page and download the library: Download convenient/tiny-progress-bar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
convenient / tiny-progress-bar example snippets
gressBar = new \Convenient\ProgressPrinter(500);
for ($i=0; $i<500; $i++) {
$progressBar->printProgress();
}
= new SplFixedArray(500);
$progressBar = new \Convenient\ProgressPrinter($arr);
foreach ($arr as $val) {
$progressBar->printProgress();
}
gressBar = new \Convenient\ProgressPrinter(500, 100);
for ($i=0; $i<500; $i++) {
$progressBar->printProgress();
}