Skip to content

nikopeikrishvili/progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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