Fast and flexible PHP library for text tables.
Table of contents
- Simple API, easy to use,
- Lightweight (no additional dependencies),
- Production ready.
Simples possible usage:
$table = new TextTable(['ID', 'NAME', 'SCORE']);
$table->addRows([
[1, 'John', 12],
[2, 'Tommy', 15],
]);
$table->render();
would produce nice text table:
+----+-------+-------+
| ID | NAME | SCORE |
+----+-------+-------+
| 1 | John | 12 |
| 2 | Tommy | 15 |
+----+-------+-------+
See more usage examples.
- Written and copyrighted ©2022 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
- Text Table is open-sourced software licensed under the MIT license