This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a progress bar | |
* | |
* @param int $total Max amount of items | |
* @param int $width Width in characters of the progress bar (defaults to 100) | |
* @param string $template Template to use, | |
* Available placeholders are %finished, %unfinished, %percent, %eta, %current and %total | |
* @return callable A function that renders the bar and takes the current value as only argument | |
* |