Commit ff725138 authored by Michael Wieland's avatar Michael Wieland
Browse files

Added example

parent 49866c05
use com\selfcoders\phptable\HeaderRow;
use com\selfcoders\phptable\Row;
use com\selfcoders\phptable\Table;
use Symfony\Component\Console\Output\ConsoleOutput;
require_once __DIR__ . "/../vendor/autoload.php";
$output = new ConsoleOutput;
$table = new Table($output);
$headerRow = new HeaderRow;
$headerRow->addField("id", "ID");
$headerRow->addField("username", "Username");
$headerRow->addField("email", "Email address");
$row = new Row;
$row->addField("id", 1);
$row->addField("username", "example");
$row->addField("email", "");
$row = new Row;
$row->addField("id", 2);
$row->addField("username", "someone");
$row->addField("email", "");
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment