<?php
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Style\SymfonyStyle;
$stream = fopen('php://output', 'w');
$output = new StreamOutput($stream);
$input = new ArrayInput([]);
$style = new SymfonyStyle($input, $output);
$rows = ['row1','row2','row3'];
$style->block($rows, null, null, '#### ');
$style->listing($rows);
$style->table($rows, [$rows]);
$rowCount = count($rows);
$style->progressStart($rowCount);
foreach ($rows as $row) {
$style->progressAdvance();
}
$style->progressFinish();