DownloadDescription
This is a simple wrapper around iterable variable with zero dependencies that uses generator to display progress in cli
Installation
composer require nikop/progress
Usage
<?php
use Progress\Progress;
require __DIR__.'/../vendor/autoload.php';
foreach (Progress::wrap(range(1, 4)) as $number) {
foreach (Progress::wrap(range(1, 5),'Second') as $secondNumber) {
foreach (Progress::wrap(range(1, 6), 'Third') as $thirdNumber) {
{
usleep(20000);
}
}
}
}
Result
 |