PHPackages                             nsbucky/resulttable - 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. nsbucky/resulttable

ActiveLibrary

nsbucky/resulttable
===================

Table creator for Laravel 4.2 projects

26PHP

Since Mar 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nsbucky/resulttable)[ Packagist](https://packagist.org/packages/nsbucky/resulttable)[ RSS](/packages/nsbucky-resulttable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ResultTable
===========

[](#resulttable)

Inspired by Yii's CGridView, this Laravel 4.2 dependent class strives to be a simple way to generate a table from an array, ie; a database result set. It works off of an array of arrays, or an array of objects. You decide which array columns or object properties to display. It does not rewrite queries or handle paging, that is up to you.

Features
--------

[](#features)

- Configurable headers
- Generates sort urls
- Uses Bootstrap table css by default
- Provided column types enable quicker development time

Column Types
------------

[](#column-types)

ResultTable offers a few different column types for calculations or displaying certain data types.

- Column: default column type, supports visiblity and custom headers and filters
- CheckBox: Generate a checkbox in a table cell
- DateTime: Use php's DateTime object to format date strings
- Link: generate anchor tags
- Total: sum columns and puts a total in the table footer

Formatters
----------

[](#formatters)

You can quickly format a column when you add it to the table:

```
->addColumn('name:formatter|option1:value1')
->addColumn('email_address:email')

```

### Required setup

[](#required-setup)

Download the library, and just put it someplace you can autoload with composer:

```
"autoload": {
    "psr-4": {
      "ResultTable\\": "/path/to/src/"
    }
  }

```

Example
-------

[](#example)

```
$table = new ResultTable\Table( Paginator $dataSource);
$table->addColumn('uniqid')
->addLinkColumn([
      'filter'=>Form::text('first_name', Input::get('first_name'), ['placeholder'=>'First Name','class'=>'form-control']).
                ''.Form::text('last_name', Input::get('last_name'), ['placeholder'=>'Last Name','class'=>'form-control']),
      'name' =>'full_name',
      'filterName'=>['first_name','last_name'],
      'label'=>function( $data ){
              return $data->displayName();
          },
      'url'=>'/leads/{id}'
  ])
->addColumn('uploaded_image:image|width:50|height:50')
->addDateTimeColumn('created_at')
->addViewButton('/url/{id}');

echo $table->render();

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nsbucky-resulttable/health.svg)

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

PHPackages © 2026

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