PHP code example of markuszeller / php-timer
1. Go to this page and download the library: Download markuszeller/php-timer 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/ */
markuszeller / php-timer example snippets
$timer->setTotal(100);
$timer->setDone(88);
// █████████████████░░░
// 20 chars are default
echo $timer->getProgressAsciiBar(), PHP_EOL;
// 88.00%
echo $timer->getProgressPercentage(), PHP_EOL;
// 88/100
echo $timer->getProgressDone(), PHP_EOL;