3

GitHub - nikopeikrishvili/progress

 1 year ago
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.
neoserver,ios ssh client

nikopeikrishvili/progress

main

Go to file

Code

Files

Permalink

Latest commit message
Commit time
July 2, 2023 12:26
src
July 2, 2023 12:26
July 2, 2023 12:26
July 2, 2023 12:26

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

demo.gif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK