PHP code example of ankalagon / eta
1. Go to this page and download the library: Download ankalagon/eta 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/ */
ankalagon / eta example snippets
php
use Ankalagon\ETA\Eta;
$eta = new Ankalagon\ETA\Eta($startTime, $allDataToProcess);
//need to pass some time
echo sprintf('Progress: %s%%, ETA: %s', $eta->getProgress(), $eta->getEta()).PHP_EOL;