PHPackages                             gloudemans/table-builder - 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. gloudemans/table-builder

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

gloudemans/table-builder
========================

A simple table builder

5171[1 issues](https://github.com/Crinsane/TableBuilder/issues)PHP

Since Mar 5Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Crinsane/TableBuilder)[ Packagist](https://packagist.org/packages/gloudemans/table-builder)[ RSS](/packages/gloudemans-table-builder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TableBuilder
------------

[](#tablebuilder)

A simple table builder implementation. Build tables from from data. Accepted data is an array of:

- Arrays
- Objects
- Collections (Laravel Specific)

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/). Edit your project's `composer.json` file by adding:

```
"require": {
	"gloudemans/tablebuilder": "dev-master"
}
```

Next, run the Composer update command from the Terminal:

```
composer update

```

### Laravel

[](#laravel)

If you want to use this package in your Laravel application all you have to do is add the service provider of the package and alias the package. To do this open your `app/config/app.php` file.

Add a new line to the `service providers` array:

```
'Gloudemans\TableBuilder\TableBuilderServiceProvider'

```

And finally add a new line to the `aliases` array:

```
'Table'            => 'Gloudemans\TableBuilder\Facades\Table',

```

Now you're ready to start using the table builder in your application.

Usage
-----

[](#usage)

Currently the package has only one public method, `generate()`. This method takes one mandatory and two optional arguments.

```
$builder->generate($data); 						  // Generates a table with the specified data, headers will be the values keys of the data
$builder->generate($data, $attributes); 		  // Adds attributes to the `` tag. (class, id, etc.)
$builder->generate($data, $attributes, $headers); // Gives you the ability to specify the headers yourself.
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

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

---

Top Contributors

[![Crinsane](https://avatars.githubusercontent.com/u/1297781?v=4)](https://github.com/Crinsane "Crinsane (5 commits)")

### Embed Badge

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

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

###  Alternatives

[affordablemobiles/g-serverless-support-laravel

Google Serverless runtime support for Laravel apps

339.4k](/packages/affordablemobiles-g-serverless-support-laravel)

PHPackages © 2026

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