reinvanoyen/oak-console-table

There is no license information available for the latest version (1.0.2) of this package.

Console tables for Oak commands

Installs: 599

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/reinvanoyen/oak-console-table

1.0.2 2019-09-19 11:54 UTC

This package is auto-updated.

Last update: 2025-09-20 02:00:42 UTC


README

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', 'reinvanoyen@gmail.com',],
    [2, 'JohnDoe21', 'johndoe@hotmail.com',],
    [3, 'butterfly1982', 'butterfly54@gmail.com',],
]);

$table->addRow([4, 'user45', 'johndoe122@gmail.com',]);

$table->output();