Use Command Line Interface!

Console Preview

Source Preview
<?php
/**
 * Console Columns
 * Webino Example
 */

use WebinoAppLib\Console\AbstractConsoleCommand;
use 
WebinoAppLib\Event\ConsoleEvent;
use 
WebinoAppLib\Event\RouteEvent;
use 
WebinoAppLib\Response\Content\SourcePreview;
use 
WebinoAppLib\Router\DefaultRoute;
use 
WebinoConfigLib\Feature\Route\ConsoleRoute;
use 
WebinoExamplesLib\Html\ConsolePreview;
use 
WebinoHtmlLib\Html;

require 
__DIR__ '/../../vendor/autoload.php';

class 
MyConsoleCommand extends AbstractConsoleCommand
{
    public function 
configure(ConsoleRoute $route)
    {
        
$route->setPath('my-command');
    }

    public function 
handle(ConsoleEvent $event)
    {
        
/**
         * The console
         * columns example.
         */
        
$cli $event->getCli();

        
$data = [
            
'12 Monkeys',
            
'12 Years a Slave',
            
'A River Runs Through It',
            
'Across the Tracks',
            
'Babel',
            
'Being John Malkovich',
            
'Burn After Reading',
            
'By the Sea',
            
'Confessions of a Dangerous Mind',
            
'Contact',
            
'Cool World',
            
'Cutting Class',
            
'Fight Club',
            
'Fury',
            
'Happy Feet Two',
            
'Happy Together',
            
'Hunk',
            
'Inglourious Basterds',
            
'Interview with the Vampire',
            
'Johnny Suede',
            
'Kalifornia',
            
'Killing Them Softly',
            
'Legends of the Fall',
            
'Less Than Zero',
            
'Meet Joe Black',
            
'Megamind',
            
'Moneyball',
        ];

        
$cli->columns($data)->br();


        
$data = [
            [
'Gary''Mary''Larry''Terry'],
            [
1.24.30.13.0],
            [
6.64.45.53.3],
            [
9.18.27.36.4],
        ];

        
$cli->columns($data)->br();
    }
}

$config Webino::config([
    new 
MyConsoleCommand,
]);

$app Webino::application($config)->bootstrap();

$app->bind(DefaultRoute::class, function (RouteEvent $event) {
    
$event->setResponse([
        new 
Html\Text('Use Command Line Interface!'),
        (new 
ConsolePreview('preview.jpg'))->setHeight(400),
        new 
SourcePreview(__FILE__),
    ]);
});

$app->dispatch();