PHPackages                             phptheme/html-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. phptheme/html-table

Abandoned → [phptheme/table](/?search=phptheme%2Ftable)Library[Utility &amp; Helpers](/categories/utility)

phptheme/html-table
===================

0136PHP

Since Feb 8Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Table
=====

[](#table)

Installation
------------

[](#installation)

```
composer require phptheme/table:dev-master

```

Usage
-----

[](#usage)

```
use PhpTheme\Table\Table;

$table = new Table([
    'defaultAttributes' => [
        'class' => 'class_1'
    ],
    'attributes' => [
        'class' => ['class_2']
    ],
    'header' => [
        'rows' => [
            [
                'columns' => [
                    ['content' => 'head_1_1'],
                    ['content' => 'head_1_2']
                ]
            ],
            [
                'columns' => [
                    ['content' => 'head_2_1'],
                    ['content' => 'head_2_2']
                ]
            ]
        ]
    ],
    'body' => [
        'rows' => [
            [
                'columns' => [
                    ['content' => 'col_1_1'],
                    ['content' => 'col_1_2']
                ]
            ],
            [
                'columns' => [
                    ['content' => 'col_2_1'],
                    ['content' => 'col_2_2']
                ]
            ]
        ]
    ],
    'footer' => [
        'rows' => [
            [
                'columns' => [
                    ['content' => 'foot_1_1'],
                    ['content' => 'foot_1_2']
                ]
            ],
            [
                'columns' => [
                    ['content' => 'foot_2_1'],
                    ['content' => 'foot_2_2']
                ]
            ]
        ]
    ]
]);

echo $table->toString();

```

#### Result HTML:

[](#result-html)

```
'

            head_1_1
            head_1_2

            head_2_1
            head_2_2

            col_1_1
            col_1_2

            col_2_1
            col_2_2

            foot_1_1
            foot_1_2

            foot_2_1
            foot_2_2

```

Testing
-------

[](#testing)

#### Windows

[](#windows)

vendor\\bin\\phpunit.bat vendor\\phptheme\\table\\tests

#### Linux

[](#linux)

./vendor/bin/phpunit vendor/phptheme/table/tests

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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://www.gravatar.com/avatar/f2830401827bc8481081563812c42d63a85faf023f038f4f038e48cdbea1b7d4?d=identicon)[phptheme](/maintainers/phptheme)

---

Top Contributors

[![phptheme](https://avatars.githubusercontent.com/u/46936952?v=4)](https://github.com/phptheme "phptheme (1 commits)")

### Embed Badge

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

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

###  Alternatives

[rs/laravel-version-control

Foundations for making your app version controlled. Provides migration, blueprint and base models. Will make your app GxP compliant if you exclusively use the VC models and table structure as set out in this package.

1218.1k](/packages/rs-laravel-version-control)

PHPackages © 2026

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