Class TableFormatter
Class TableFormatter
Output text in multiple columns
Direct known subclasses
splitbrain\phpcli\tests\TableFormatter
Namespace: splitbrain\phpcli
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/TableFormatter.php
License: MIT
Author: Andreas Gohr andi@splitbrain.org
Located at src/TableFormatter.php
public
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
|
|
protected
integer
|
|
protected
int[]
|
#
calculateColLengths( array $columns )
Takes an array with dynamic column width and calculates the correct width |
public
string
|
|
protected
string
|
|
protected
integer
|
|
protected
string
|
|
protected
string
|
protected
string
|
$border
border between columns |
#
' '
|
protected
integer
|
$max
the terminal width |
#
74
|
protected
|
$colors
for coloring output |