Skip to content

reinvanoyen/oak-console-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

oak-console-table

Console tables for Oak

Installation

composer require reinvanoyen/oak-console-table

Example usage

<?php

$table = new \Tnt\ConsoleTable\Table($output); // $output = OutputInterface

$table->setHeaders(['Id', 'Username', 'Email address',]);
$table->setRows([
    [1, 'Rein', '[email protected]',],
    [2, 'JohnDoe21', '[email protected]',],
    [3, 'butterfly1982', '[email protected]',],
]);

$table->addRow([4, 'user45', '[email protected]',]);

$table->output();

About

Console tables for Oak commands

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages