PHP code example of klepak / console-progress-bar
1. Go to this page and download the library: Download klepak/console-progress-bar library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
klepak / console-progress-bar example snippets
$progress = (new ConsoleProgressBar)
->max(5)
->message('Test')
->unit('Things')
->padding(1, 2); # top, bottom
sleep(1);
$progress->update(3);
sleep(1);
$progress->completed();