Answers for "How to Color and Style the Console Output"

0

How to Color and Style the Console Output

use Symfony\Component\Console\Formatter\OutputFormatterStyle;

// ...
$outputStyle = new OutputFormatterStyle('red', '#ff0', ['bold', 'blink']);
$output->getFormatter()->setStyle('fire', $outputStyle);

$output->writeln('<fire>foo</>');
Posted by: Guest on April-19-2021

Code answers related to "How to Color and Style the Console Output"

Browse Popular Code Answers by Language