PHP code example of tinyapps / script-progress
1. Go to this page and download the library: Download tinyapps/script-progress 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/ */
tinyapps / script-progress example snippets
$numberOfItems = 20;
$progress = new TinyApps\ScriptProgress\Progress($numberOfItems);
for ($i=0; $i <= $numberOfItems; $i++) {
// do something
$progress->update($i);
}