Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-02-20 (10 months ago) RSS 2.0 feedNot enough user ratingsTotal: 311 All time: 6,544 This week: 1,582Up
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
Name: William Sant Ana <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 27
All time rank: 3386270 in Brazil Brazil
Week rank: 1754 Up146 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • printSomeValues.PNG
  • htmlTable.PNG
  • calendar.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:311All time:6,544
 This week:0This week:1,582Up
 User Comments (1)  
 
This is a very interesting class ;-)
9 months ago (Josť Filipe Lopes Santos)
70%StarStarStarStar