3
GitHub - nikopeikrishvili/progress
source link: https://github.com/nikopeikrishvili/progress
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
nikopeikrishvili/progress
main
Code
Files
Description
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
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages
No packages published
Languages
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK