PHP code example of kyoya0819 / progress-bar

1. Go to this page and download the library: Download kyoya0819/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/ */

    

kyoya0819 / progress-bar example snippets



kyoya0819\ProgressBar\ProgressBar;

$progress_bar = new ProgressBar();

for ($i = 1; $i <= 100; $i++) {
    usleep(20000);
    echo $progress_bar->view($i, 100, 'Here is message');
}