nikop / progress
1.0.0
2023-07-02 08:26 UTC
Requires
- php: ^8.0
This package is not auto-updated.
Last update: 2025-03-24 15:24:00 UTC
README
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); } } } }