PHPackages                             websetgo/table-tool - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. websetgo/table-tool

ActiveLibrary[Templating &amp; Views](/categories/templating)

websetgo/table-tool
===================

A class to assist in the rendering of HTML tables.

06PHP

Since Aug 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/DeanWard/TableTool)[ Packagist](https://packagist.org/packages/websetgo/table-tool)[ RSS](/packages/websetgo-table-tool/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#TableTool

\###What is it? TableTool is a php class that assists in the creation and rendering of html tables.

\###How do I use it? Once you have installed it using composer you can use it like so:

```
//default table with no attributes
$table = new Table();

//define the table's class (in this case, a bootstrap table)
$table = new Table(
  array(
      "class" => "table table-bordered table-rounded"
    )
 );

//add a row to the table
$table->addRow(array('Gecko', 'Firefox 1.0', 'Win 98+ / OSX.2+',  '1.7', 'A'));

//add a header row to the table
$table->addRow(array('Engine','Browser','User Agent','version', 'CSS Grade'),null,'head');

//the null parameter above can be used in the same was as the table constructor to pass attributes to the row
$table->addRow(array('Engine','Browser','User Agent','version', 'CSS Grade'),array("style" => "background:red;"),'head');
//or on a body row
$table->addRow(array('Engine','Browser','User Agent','version', 'CSS Grade'),array("style" => "background:red;"));

//output the table to the page
echo $table->render();
```

\###Why is the outputted html all on one line? The `render()` method does not care about witespace between elements, indenting, or anything else like that. It will output valid html but it will not try to make it pretty.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/397670?v=4)[Dean Ward](/maintainers/DeanWard)[@DeanWard](https://github.com/DeanWard)

---

Top Contributors

[![DeanWard](https://avatars.githubusercontent.com/u/397670?v=4)](https://github.com/DeanWard "DeanWard (2 commits)")

### Embed Badge

![Health badge](/badges/websetgo-table-tool/health.svg)

```
[![Health](https://phpackages.com/badges/websetgo-table-tool/health.svg)](https://phpackages.com/packages/websetgo-table-tool)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
