Progress bar 0.1.0+ ​
📝 Name: progress · 🖥️ Option: -p, --progress
Show a progress bar during cache warmup.
INFO
The progress bar is implicitly enabled when using a non-verbose formatter, e.g. json.
Compact style ​
With normal output verbosity, the progress bar is shown in compact style.
bash
./cache-warmup.phar -p
./cache-warmup.phar --progressjson
{
"progress": true
}php
use EliasHaeussler\CacheWarmup;
return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
$config->enableProgressBar();
return $config;
};yaml
progress: truebash
CACHE_WARMUP_PROGRESS=1Verbose style ​
You can optionally use the progress bar in verbose style by increasing output verbosity with the --verbose command option.
bash
./cache-warmup.phar -p -v
./cache-warmup.phar --progress --verbose