PHPackages                             ppranav/table-insights - 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. ppranav/table-insights

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

ppranav/table-insights
======================

TableInsights is a powerful package designed specifically for back-end developers using the Laravel framework. It allows for easy conversion of database tables into meaningful statistics and insights using just a model.

1.6(3y ago)031MITPHP

Since Jan 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ppranav164/TableInsights)[ Packagist](https://packagist.org/packages/ppranav/table-insights)[ RSS](/packages/ppranav-table-insights/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (5)Used By (0)

TableInsights
=============

[](#tableinsights)

TableInsights is a powerful package designed specifically for back-end developers using the Laravel framework. It allows for easy conversion of database tables into meaningful statistics and insights using just a model.

Getting Started
===============

[](#getting-started)

Prerequisites

- Laravel Framework

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

[](#installation)

You can install the package via composer:

```
composer require ppranav/table-insights
```

You can load the package's config file by running:

```
php artisan vendor:publish --tag=tableinsights
```

The config file allows you to customize the tableinsights's settings.

You can customize the key names of your Tableinsights array and enable or disable individual keys to better suit your needs. To change a key name, enter/replace the desired key name in the right field.

Usage
=====

[](#usage)

Extend the class \\Ppranav\\TableInsights\\TableInsights in your own class and implement a models() method in the following code:

```
/**
 * Add arrays of models
 * @return array
 */
public function models() {
    return [
        Project::class => 'created_at',
        TaskLog::class => 'committed_at'
    ];
}
```

You may also update models query using the following code:

```
public function setQuery(Activity $activity)
{
    return $activity->query()->where(‘user_id’, auth()->id());
}
```

Finally, Your Implementation class should look like this:

```
class Dashboard extends TableInsights
{

    /**
     * Add arrays of models
     * @return array
     */
    public function models() {
        return [
            Project::class => 'created_at',
            TaskLog::class => 'committed_at'
        ];
    }

    public function setQuery(Activity $activity)
    {
        return $activity->query()->where('created_for_id', auth()->id());
    }
}
```

Show insights in a controller

```
 return (new Dashboard())->getInsights();
```

Screenshots
-----------

[](#screenshots)

[![App Screenshot](https://raw.githubusercontent.com/ppranav164/TableInsights/main/tableinsights.png)](https://raw.githubusercontent.com/ppranav164/TableInsights/main/tableinsights.png)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

4

Last Release

1283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d5d5c448a3e34dc5bc2f93d94c2282873e4142a4a86966232b325bd84c729bd?d=identicon)[ppranav164](/maintainers/ppranav164)

---

Top Contributors

[![ppranav164](https://avatars.githubusercontent.com/u/20520086?v=4)](https://github.com/ppranav164 "ppranav164 (11 commits)")

---

Tags

phplaraveltablestatisticstable insights

### Embed Badge

![Health badge](/badges/ppranav-table-insights/health.svg)

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

###  Alternatives

[okipa/laravel-table

Generate tables from Eloquent models.

57353.6k](/packages/okipa-laravel-table)[amranidev/laracombee

Recommendation system for laravel

11539.8k1](/packages/amranidev-laracombee)[yieldstudio/tailwind-merge-php

Merge Tailwind CSS classes without style conflicts

4975.8k1](/packages/yieldstudio-tailwind-merge-php)[amendozaaguiar/filament-route-statistics

Filament route statictics viewer

3226.0k1](/packages/amendozaaguiar-filament-route-statistics)[wujunze/money-wrapper

MoneyPHP Wrapper

103.8k](/packages/wujunze-money-wrapper)

PHPackages © 2026

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