PHPackages                             pojow/laravel-collection-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. pojow/laravel-collection-table

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

pojow/laravel-collection-table
==============================

Generate tables from Laravel collection

v0.1.4(1y ago)0157MITPHPPHP ^8.2

Since Jun 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pojow/laravel-collection-table)[ Packagist](https://packagist.org/packages/pojow/laravel-collection-table)[ Docs](https://github.com/pojow/laravel-collection-table)[ RSS](/packages/pojow-laravel-collection-table/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

[![Laravel Collection Table illustration](/docs/laravel-collection-table.png)](/docs/laravel-collection-table.png)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/01ac6ab5da559d7b7808b60f31c2c8f26c770ab84cb40dc6c26812073e41ed98/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f706f6a6f772f6c61726176656c2d636f6c6c656374696f6e2d7461626c652e7376673f7374796c653d666c61742d737175617265) ](https://github.com/pojow/laravel-collection-table/releases "Latest Stable Version") [ ![Total Downloads](https://camo.githubusercontent.com/49e5c9e3537056c7ba5c75a7ed39513da6975d6f6a8e79be2001db920569fc25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6a6f772f6c61726176656c2d636f6c6c656374696f6e2d7461626c652e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/pojow/laravel-collection-table "Total Downloads") [ ![Build Status](https://github.com/pojow/laravel-collection-table/actions/workflows/ci.yml/badge.svg) ](https://github.com/pojow/laravel-collection-table/actions "Build Status") [ ![Coverage Status](https://camo.githubusercontent.com/a1627ad82c927bee60381f5897bdea65d5b61be07bb29313b127f55addba171d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f706f6a6f772f6c61726176656c2d636f6c6c656374696f6e2d7461626c652f62616467652e7376673f6272616e63683d6d61696e) ](https://coveralls.io/github/pojow/laravel-collection-table?branch=main "Coverage Status") [ ![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667) ](/LICENSE.md "License: MIT")

Our package allows you to generate functional HTML tables from a Laravel collection. The generated tables support a variety of features, including filtering, sorting, searching, and actions.

This lightweight package is designed for developers, providing easy customization of tables. You can effortlessly create new filters, column formats, and more to suit your specific needs.

The package can be used with the following UI frameworks:

- Bootstrap 5
- TailwindCSS 3 (beta)
- Custom : All views in the package can be overridden, allowing you to manage the display of your tables exactly as you wish.

Compatibility
-------------

[](#compatibility)

LaravelPHPPackage^11.08.2.\* | 8.3.\*^0.1Usage example
-------------

[](#usage-example)

Create your table with the following command:

```
php artisan make:table UsersTable
```

Configure your table in the `UsersTable` generated class, which can be found in the `app\Tables` directory:

```
namespace App\Tables;

use App\Models\User;
use Pojow\LaravelCollectionTable\Abstracts\AbstractTableConfiguration;
use Pojow\LaravelCollectionTable\Column;
use Pojow\LaravelCollectionTable\Filters\SelectFilter;
use Pojow\LaravelCollectionTable\RowActions\DestroyRowAction;
use Pojow\LaravelCollectionTable\RowActions\EditRowAction;
use Pojow\LaravelCollectionTable\Table;

class UsersTable extends AbstractTableConfiguration
{
    protected function table(): Table
    {
        return Table::make()
            ->collection(User::all())
            ->filters([
                (new SelectFilter(__('Role'), 'role'))->options(['user', 'administrator']),
            ])
            ->rowActions([
                new EditRowAction('user.edit', 'id'),
                new DestroyRowAction('user.destroy', 'id'),
            ]);
    }

    protected function columns(): array
    {
        return [
            Column::make('username')
                ->searchable()
                ->sortable(),
            Column::make('first_name')
                ->searchable()
                ->sortable(),
            Column::make('last_name'),
            Column::make('email')
                ->searchable()
                ->sortable()
                ->format(fn (User $user) => "{$user->email}", false),
        ];
    }
}
```

And display it in a view:

```

```

See the result [![Table usage example](/docs/table-usage-example.png)](/docs/table-usage-example.png)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Views](#views)
- [Features](#features)
    - [Filters](#todo) : Documentation not available
    - [Column formatters](#todo) : Documentation not available
    - [Row actions](#todo) : Documentation not available
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [Licence](#license)

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

[](#installation)

You can install the package via composer:

```
composer require pojow/laravel-collection-table
```

Configuration
-------------

[](#configuration)

You can publish the config file with:

```
php artisan vendor:publish --tag=laravel-collection-table:config
```

Among its configurations, this package allows you to choose which UI framework will be use.

Please note that you'll have to install and configure the UI framework you want to use before using this package, or you must override all the views and create your own.

Views
-----

[](#views)

You can publish the package views to customize them if necessary:

```
php artisan vendor:publish --tag=laravel-collection-table:views
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Pojow](https://github.com/pojow)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

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 ~2 days

Total

5

Last Release

695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ee5a76f5a08b08cf00597b5a4a24ea82e3f69b9d50be178136f3251a990745d?d=identicon)[pojow](/maintainers/pojow)

---

Top Contributors

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

---

Tags

laravelPojowcollection-table

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pojow-laravel-collection-table/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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