PHP Classes

Tables for the Shell: Output tables of data rendered as text characters

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 326 All time: 7,169 This week: 110Up
Version License PHP version Categories
table-for-shell 1.0BSD License5.0HTML, PHP 5, Text processing, Console
Description 

Author

This class can output tables of data rendered as text characters.

It can compose the definition of a table adding headers, footers, rows and cells.

The class can also convert a HTML table to text formatted table.

The class can compute the table layout and return a string with table as text characters.

Innovation Award
PHP Programming Innovation award nominee
February 2014
Number 2
Sometimes it is necessary to generate text to present information in console terminals or in text newsletters.

Usually PHP applications display information using HTML, but it is not a trivial effort to represent complex page structures like tables in text format.

This class can generate tables displayed using text characters. It makes it easier to adapt PHP applications that generate HTML tables, by converting those tables to text format.

Manuel Lemos
Picture of William Sant Ana
  Performance   Level  
Name: William Sant Ana <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 36
All time rank: 3753301 in Brazil Brazil
Week rank: 312 Up26 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • calendar.PNG
  • htmlTable.PNG
  • printSomeValues.PNG
  Files folder image Files  
File Role Description
Files folder imageexamples (6 files)
Plain text file tableForShell.php Class Main Class TableForShell

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file calendar.php Example Example of printing a year calendar on the console
  Accessible without login Plain text file csvData.csv Data CsvData for example
  Accessible without login Plain text file htmlTable.php Example Example of print a html table on the console
  Accessible without login Plain text file loopTo999.php Example Example of print a table of 1 to 999 on the console
  Accessible without login Plain text file printDataInCSV.php Example Example of print a csv file on the console
  Accessible without login Plain text file printSomeValues.php Example Example of print some data on the console

 Version Control Unique User Downloads Download Rankings  
 0%
Total:326
This week:0
All time:7,169
This week:110Up
User Comments (1)
This is a very interesting class ;-)
10 years ago (José Filipe Lopes Santos)
70%StarStarStarStar