<?php
use Laminas\Console\Console;
use Laminas\Console\ColorInterface as Color;
// Sorry for console stuff in browser :-)
class MyConsole extends Console
{
}
// Why accessing Console adapter methods this way?
// Laminas\Console\Adapter\Posix::writeLine
MyConsole::writeLine('hello world', Color::RED);
MyConsole::resetInstance();
// Posix is default adapter when getInstance has no param
$posix = MyConsole::getInstance('Posix');
$posix->writeTextBlock('hello console', 200);