Home » Console » Console_Table
Library that makes it easy to build console style tables
This package is unmaintained.
Download latest release 1.3.1 (there might be newer Composer installable version)
License: BSD
Description
Provides a Console_Table class with methods such as addRow(), insertRow(), addCol() etc. to build console tables with or without headers and with user defined table rules, padding, and alignment.
Documentation
Maintainers
- Jan Schneider (yunosh) — lead, active
- Richard Heyes (richard) — lead, inactive
- Tal Peer (tal) — developer, inactive
- Xavier Noguer (xnoguer) — developer, inactive
Dependencies
Required
- PHP (>= 5.2.0)
- PEAR Installer (>= 1.4.0b1)
Optional
- Console_Color2 (>= 0.1.2)
Releases
- 1.3.1 (stable, 2018-01-25)
Release notes
License: BSD
* Fix warning with PHP 7.2 when passing non-array data (Remi Collet <remi@remirepo.net>, PR #14).
- 1.3.0 (stable, 2016-01-21)
Release notes
License: BSD
* Fix warning with PHP 7 and bump required PHP version to 5.2.0 (Pieter Frenssen PR #13).
- 1.2.1 (stable, 2014-10-27)
Release notes
License: BSD
* Add travis configuration (Christian Weiske).
* Try to autoload Console_Color2 first (Jurgen Rutten, PR #11).
* Fix Composer definition syntax (Rob Loach, PR #9). - 1.2.0 (stable, 2014-02-17)
Release notes
License: BSD
* Make border visibility configurable (Christian Weiske, Request #20186).
* Allow to customize all border characters (Christian Weiske, Request #20182).
* Fix notice when using setAlign() on other than first column (Christian Weiske, Bug #20181).
* Use Console_Color2 to avoid notices from PHP 4 code (Christian Weiske, Bug #20188) - 1.1.6 (stable, 2013-10-12)
Release notes
License: BSD
* Use line breaks dependent on the current operating system (Bug #20092).
- 1.1.5 (stable, 2012-12-07)
Release notes
License: BSD
* Use mb_strwidth() instead of mb_strlen() to determine lengths of multi-byte strings (Bug #19423).
- 1.1.4 (stable, 2010-10-25)
Release notes
License: BSD
* Automatically built QA release.
* Add Console_Color support (Request #14835).* Improve documentation (Christian Weiske, Bug #15006).
- 1.1.3 (stable, 2008-10-20)
Release notes
License: BSD
* Add option to render data with ANSI color codes (Igor Feghali, Request #14835).
- 1.1.2 (stable, 2008-07-27)
Release notes
License: BSD
* Don't render anything if no data has been provided (Bug #14405).
- 1.1.1 (stable, 2008-04-09)
Release notes
License: BSD
* Fix rendering of multiline rows with cells that contain zeros (Bug #13629).
- 1.1.0 (stable, 2008-03-28)
Release notes
License: BSD
* Add option to set table border character.
* Extend constructor to set table borders, padding, and charset on instantiation. - 1.0.8 (stable, 2008-01-08)
Release notes
License: BSD
* Fix cell padding with multibyte strings under certain circumstances (Bug #12853).
- 1.0.7 (stable, 2007-05-17)
Release notes
License: BSD
* Fix header height if first data row has more than one line (Bug #11064).
* Fix notice if header is not set. - 1.0.6 (stable, 2007-01-19)
Release notes
License: BSD
* Add support for multi-line headers (Request #8615).
- 1.0.5 (stable, 2006-08-28)
Release notes
License: BSD
* Allow to specify separator rules in addData().
* Fix warnings when combining separator rules and callback filters (Bug #8566). - 1.0.4 (stable, 2006-04-08)
Release notes
License: BSD
* Add support for multi-line cells (koto at webworkers dot pl, Request #7017).
- 1.0.3 (stable, 2006-03-12)
- 1.0.2 (stable, 2005-07-16)
Release notes
License: BSD
* Added support for column alignment (Michael Richter).
- 1.0.1 (stable, 2003-03-03)
Release notes
License: BSD
* Fixed a caching bug.
- 1.0 (stable, 2003-01-24)
Release notes
License: BSD
* Removed a few options and added addData() method.
- 0.8 (beta, 2002-09-02)
Release notes
License: BSD
* Initial release.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1757 | Closed | Req | 2004-06-30 | [Patch] Add Horizontal Seperators Support | |
| #2934 | Closed | Bug | 2004-12-09 | Missing multibyte charset support | |
| #3587 | Closed | Bug | 2005-02-24 | _calculateCelLengths triggers error on first call | |
| #4299 | Closed | Bug | 2005-05-06 | Cell Sizing Issues | |
| #5042 | Closed | Bug | 2005-08-09 | Documentation of getTable has the wrong return type | |
| #5309 | Closed | Bug | 2005-09-06 | Fatal error in Table.php:492 (pass by reference) w/patch | |
| #5851 | Closed | Bug | 2005-11-02 | Notice: Undefined offset: 0 in Table.php on line 378 | |
| #7014 | Closed | Req | 1.0.2 | 2006-03-04 | Multi-byte strlen() improvement |
| #7017 | Closed | Req | CVS | 2006-03-04 | Multi-line cells support (patch included) |
| #8566 | Closed | Bug | 1.0.4 | 2006-08-26 | warning message on apply filter with a separator |
| #8615 | Closed | Bug | 1.0.5 | 2006-09-02 | multiline cells not supported by headers |
| #8616 | Bogus | Bug | 1.0.5 | 2006-09-02 | warnings when apply twice addData |
| #11064 | Closed | Bug | 1.0.6 | 2007-05-17 | Headers are wrongly sized |
| #11326 | Open | Req | 1.0.7 | 2007-06-15 | col and rowspan |
| #12853 | Closed | Bug | 1.0.7 | 2008-01-08 | Console_Table relies on str_pad which is not MultiByte compliant |
| #12863 | Bogus | Bug | 1.0.8 | 2008-01-09 | All tests failed |
| #13230 | Closed | Req | CVS | 2008-02-27 | Option to turn off ASCII art |
| #13629 | Closed | Bug | 1.1.0 | 2008-04-08 | column zero content won't display if other columns with multiline |
| #14405 | Closed | Bug | 1.1.1 | 2008-07-25 | Notice when no data has been added |
| #14835 | Closed | Req | 1.1.2 | 2008-10-20 | Add Console_Color support |
| #15006 | Closed | Doc | 1.1.3 | 2008-11-12 | Console_table docs are totally worthless |
| #15007 | Duplicate | Doc | CVS | 2008-11-12 | Improve example |
| #15009 | Duplicate | Bug | 1.1.3 | 2008-11-13 | Console_Table does not work properly with Console_Color |
| #19423 | Closed | Req | 1.1.4 | 2012-05-18 | cell padding incorrect when use multi-byte chars |
| #19681 | No Feedback | Bug | 1.1.4 | 2012-10-29 | Problem in Composer Package |
| #20033 | Wont fix | Bug | 1.1.5 | 2013-08-09 | Console_Table-1.1.5.tgz contains only package.xml |
| #20092 | Closed | Bug | 1.1.5 | 2013-10-11 | Table output inserts bogus \r character when not on Windows |
| #20181 | Closed | Bug | 1.1.6 | 2014-01-22 | E_NOTICE when using setAlign() but not on first column |
| #20182 | Closed | Req | 1.1.6 | 2014-01-22 | Allow customization of border characters |
| #20186 | Closed | Req | 1.1.6 | 2014-01-24 | Make border visibility configurable |
| #20188 | Closed | Bug | 1.1.6 | 2014-01-27 | E_NOTICES because of Console_Color usage |
| #20398 | Spam | Req | SVN | 2014-09-06 | Watch// The Fault in Our Stars [ONLINE FOR FREE] |
| #21070 | Open | Bug | 1.3.0 | 2016-05-31 | Cannot calculateTotalsFor() with colorized text |
| #21071 | Duplicate | Bug | 1.3.0 | 2016-05-31 | Cannot calculateTotalsFor() with colorized text |
| #21072 | Open | Req | 1.3.0 | 2016-05-31 | Allow calculateTotalsFor() to parse formatted numbers |
| #21155 | Closed | Bug | 1.3.0 | 2016-12-13 | [message] => Methods with the same name as their class will not be constructors |