PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 327 All time: 7,175 This week: 488Up
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: 37
All time rank: 3757301 in Brazil Brazil
Week rank: 178 Up11 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

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

  Files folder image Files (10)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:327
This week:0
All time:7,175
This week:488Up
User Comments (1)
This is a very interesting class ;-)
10 years ago (José Filipe Lopes Santos)
70%StarStarStarStar