PHPackages                             gasparilab/actionablelist - 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. [Admin Panels](/categories/admin)
4. /
5. gasparilab/actionablelist

ActiveLibrary[Admin Panels](/categories/admin)

gasparilab/actionablelist
=========================

Generate actionable lists for admin panels.

0.1.5(8y ago)0841MITPHPPHP ~7.1

Since Aug 29Pushed 8y agoCompare

[ Source](https://github.com/GaspariLab/ActionableList)[ Packagist](https://packagist.org/packages/gasparilab/actionablelist)[ Docs](https://github.com/GaspariLab/ActionableList)[ RSS](/packages/gasparilab-actionablelist/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

ActionableList
==============

[](#actionablelist)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

This is a package for **Laravel 5.5** that lets you easily create tables of items, especially for administration panels. It requires **PHP 7.1**.

**Please bear in mind that this package is under development**, it is not stable for production yet. For example, new releases could introduce breaking changes. Thank you.

Install
-------

[](#install)

You can easily install this package via `composer`:

```
composer require gasparilab/actionablelist
```

This package supports the new Laravel service provider autodiscovery, so there's no need to put it manually into the `providers` array in `config/app.php`.

If you want to customize the tables HTML code (you probably will!), you can publish the included views into your project with the following Artisan command:

```
php artisan vendor:publish --tag=actionablelist --force
```

This will copy the views to the `resources/views/vendor/actionablelist` folder of you app, so you can customize them and keep them versioned. The `--force` parameter overwrites any existing view with the same name, it's useful if you're updating this package from an old version.

Usage
-----

[](#usage)

### Complete syntax for creating a Table

[](#complete-syntax-for-creating-a-table)

```
// Instantiate a new Table
$table = new Table();

// Add columns
$table->addColumns(['Quantity', 'Color', 'Animal']);

// Add the dataset
$table->addDataset([
    ['one', 'red', 'cat'],
    ['two', 'green', 'bird'],
    ['three', 'blue', 'dog'],
]);

// Set the formatter for a column
$table->columns[0]->setFormatter(function ($animals) {
    return 'The color is ' . $animals[1];
});
```

### Quickly creating a Table

[](#quickly-creating-a-table)

You can also quickly create a new Table using the static `make()` function. The first parameter is an array of the columns, the second parameters is an array of formatters for each column, the third parameter is the dataset.

Example: creating a table with three columns and two items inside.

```
$table = Table::make([
    'id' => 'ID',
    'title' => 'Title',
    'created_by' => 'Author',
], [
    function ($row) {
        return 'ID: ' . $row[0];
    },
    function ($row) {
        // Return the title
        return $row[1];
    },
    function ($row) {
        return new HtmlString('The author is: ' . $row[2]);
    },
], [
    [1, 'Lorem Ipsum', 'John Doe'],
    [2, 'Dolor Sit', 'Pippo Pluto'],
    // ...more rows...
]);
```

The Table also has a fluent interface which lets you to chain methods, like the Query Builder.

```
Table::addColumns($columns)->addDataset($data)->addFormatters($formatters); // ...and so on
```

### Datasets

[](#datasets)

Datasets can be arrays, Collections, Eloquent Collections or any other [iterable](http://php.net/manual/en/language.types.iterable.php) which also implements the ArrayAccess interface.

### Printing the table inside the view

[](#printing-the-table-inside-the-view)

In you Blade view you can print the Table this way:

```
@include('actionablelist::table')
```

Testing
-------

[](#testing)

```
vendor/bin/phpunit vendor/gasparilab/actionablelist/tests
```

Postcardware
------------

[](#postcardware)

This package is [MIT-licensed](LICENSE.md), but if it makes it to your production environment we'd appreciate if you send us a postcard from your hometown. Our address is:

```
GaspariLab
via Minghetti, 18
40057 Cadriano di Granarolo E. (BO)
ITALY

```

Credits
-------

[](#credits)

A package made by *Luca Andrea Rossi* for GaspariLab S.r.l.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

4

Last Release

3109d ago

PHP version history (2 changes)v0.1PHP ~7.0

0.1.5PHP ~7.1

### Community

Maintainers

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

---

Tags

GaspariLabActionableList

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gasparilab-actionablelist/health.svg)

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

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[takielias/tablar

Tablar: A Laravel Dashboard Preset Featuring Dark Mode and Dynamic Menu Generation for Effortless Navigation and Fast Development.

30817.7k3](/packages/takielias-tablar)[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

28618.2k3](/packages/sebastienheyd-boilerplate)[takielias/tablar-kit

The Elegance of Tablar Dashboard

413.4k](/packages/takielias-tablar-kit)[adminui/inertia-routes

A hybrid JS/PHP package adding Ziggy-routes functionality to your Laravel/Inertia/Vue3 application

183.2k](/packages/adminui-inertia-routes)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

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