I know this question is very old, but it appears in my google search and maybe helps someone.
Here's fooobar.com/questions/1340837 / ... with good answers, especially this one that points to a Zend Framework module called Zend / Text / Table .
Hope this helps.
Introduction to Documents
Zend \ Text \ Table is a component for creating text tables on the fly with various decorators. This can be useful if you want to send structured data to text messages that are used for single-spaced fonts, or to display table information in a CLI application. Zend \ Text \ Table supports multiline columns, colspan, and alignment.
Main use
$table = new Zend\Text\Table\Table(array('columnWidths' => array(10, 20))); // Either simple $table->appendRow(array('Zend', 'Framework')); // Or verbose $row = new Zend\Text\Table\Row(); $row->appendColumn(new Zend\Text\Table\Column('Zend')); $row->appendColumn(new Zend\Text\Table\Column('Framework')); $table->appendRow($row); echo $table;
Output
ββββββββββββ¬βββββββββββββββββββββ βZend βFramework β |ββββββββββ|ββββββββββββββββββββ| βZend βFramework β ββββββββββββ΄βββββββββββββββββββββ
source share