PHPackages                             erguncaner/table - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. erguncaner/table

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

erguncaner/table
================

Very simple table generator for PHP

v0.1.1(7y ago)42.5k↓75%3MITPHPPHP &gt;=7.0.0CI failing

Since Feb 15Pushed 5y agoCompare

[ Source](https://github.com/erguncaner/table)[ Packagist](https://packagist.org/packages/erguncaner/table)[ RSS](/packages/erguncaner-table/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Yet another very simple html table generator for PHP

```
composer require erguncaner/table dev-master

```

Generate a table structure as shown below

```
require_once __DIR__.'/vendor/autoload.php';

use erguncaner\Table\Table;
use erguncaner\Table\TableColumn;
use erguncaner\Table\TableRow;
use erguncaner\Table\TableCell;

// Sample data
$posts = [
    ['id'=>1, 'title'=>'Title 1'],
    ['id'=>2, 'title'=>'Title 2'],
    ['id'=>3, 'title'=>'Title 3'],
];

// First create a table
$table = new Table([
    'id'=>'post-table'
]);

// Create table columns with a column key and column object
$table->addColumn('id', new TableColumn('ID', ['class'=>'id-column']));
$table->addColumn('title', new TableColumn('TITLE'));

// Then add rows
foreach($posts as $post){

    // Associate cells with columns
    $cells = [
        'id' => new TableCell($post['id'], ['class'=>'id-cell']),
        'title' => new TableCell($post['title']),
    ];

    // define row attributes
    $attrs = [
        'id' => 'post-'.$post['id']
    ];

    $table->addRow(new TableRow($cells, $attrs));
}

// Finally generate html
$html = $table->html();
```

This will generate html below

```

    IDTITLE

    1Title 1
    2Title 2
    3Title 3

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2644d ago

PHP version history (2 changes)v0.1PHP &gt;=5.4.0

v0.1.1PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c61ae5437d7c8fcbd9b535d79223b88d818b7e2887aee9af84b0be2cc66720ee?d=identicon)[erguncaner](/maintainers/erguncaner)

---

Top Contributors

[![erguncaner](https://avatars.githubusercontent.com/u/106727?v=4)](https://github.com/erguncaner "erguncaner (15 commits)")

---

Tags

phptable

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[camspiers/statistical-classifier

A PHP implementation of Complement Naive Bayes and SVM statistical classifiers, including a structure for building other classifier, multiple data sources and multiple caching backends

17237.0k1](/packages/camspiers-statistical-classifier)[humanmade/page-for-post-type

Allows you to set pages for any custom post type archive

18810.2k](/packages/humanmade-page-for-post-type)

PHPackages © 2026

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