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
1.0.2
2019-09-19 11:54 UTC
Requires
- reinvanoyen/oak: ^1.0.0
This package is auto-updated.
Last update: 2024-10-20 00:01:05 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();