Pivot Table Free by PtPlugins
CommunityFree pivot table Blade component for FilamentPHP. Group Eloquent records into a 2-dimensional pivot with Sum aggregation. Works with Filament 3, 4, and 5.
Author:
PtPlugins
Package health
Automated checks of this plugin's Composer package
15 checks
- Skipped: GitHub Actions pinned to SHA
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Skipped: Dependabot or Renovate configured
- Skipped: Dependency update cooldown configured
- Failed: Provides a security policy — View details on Plumb
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Passed: Commit and release recency — Active: last commit 59 days ago; last release 70 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis absent from the released dist archive. - Passed: Dist archive is lean
-
Warning:
Current Laravel version supported
— Package does not co-install with current Laravel
13.0; the newest co-installable line is12.0, which receives security patches only (until 2027-02-24). -
Passed:
Current PHP version supported
— Constraint
^8.2supports current PHP8.5. - Skipped: Current Symfony version supported
filament/
namespace. Review the source and install at your own risk. Found
malware or an unresolved security issue the author won't
address?
Report it
.
Documentation
Free Blade component that renders Eloquent records as a pivot table with Sum aggregation. Works with Filament 3, 4, and 5.
Live demo: ptplugins.com/demo/pivot-pro — no signup required. The demo shows the Pro version with all features; the Free component renders the same table style limited to 2×2 dimensions and Sum aggregation.
<x-pivot-free::pivot-table
:records="$sales"
rowField="region"
columnField="month"
valueField="amount"
/>
That's it. One line in your view — pivot on screen.
#Installation
composer require ptplugins/filament-pivot-table-free
No publishing, no migrations, no config. The component auto-registers as <x-pivot-free::pivot-table />.
#Examples
#1. Single dimension (1 row × 1 column)
// In your Filament Resource page or any Blade view:
$sales = Sale::query()->whereYear('created_at', 2026)->get();
<x-pivot-free::pivot-table
:records="$sales"
rowField="region"
columnField="month"
valueField="amount"
title="Sales by Region & Month"
/>
#2. Two dimensions (2 row × 2 column)
<x-pivot-free::pivot-table
:records="$sales"
:rowFields="['region', 'category']"
:columnFields="['year', 'quarter']"
valueField="amount"
/>
The leftmost dimensions are rendered as grouping headers (rowspan / colspan).
#3. Eloquent query (lazy)
If you'd rather pass a query, the component runs ->get() for you:
<x-pivot-free::pivot-table
:query="App\Models\Sale::query()->whereYear('created_at', 2026)"
rowField="region"
columnField="month"
valueField="amount"
/>
#What's included (Free)
- Up to 2 row × 2 column dimensions
- Sum aggregation
- Grand Total
- Light + dark theme out of the box (Tailwind
dark:variants) - Translations — English bundled, publish & override for any locale
- Eloquent query OR Collection / array of records
- Filament v3 + v4 + v5 compatible (single codebase)
#Requirements
- Laravel 10+ / 11+ / 12+
- PHP 8.2+
- Tailwind CSS in your build — every Filament project already has it. The component uses standard utility classes (
bg-white,dark:bg-gray-900,text-gray-900, etc.) that ship with the default Tailwind preset.
#Translations
# Publish English (and any other locales you add later)
php artisan vendor:publish --tag=pivot-free-translations
Edit / add at lang/vendor/pivot-free/{locale}/messages.php.
#What's NOT included — that's where Pro comes in
| Feature | Free | Pro |
|---|---|---|
| Row × column dimensions | up to 2 × 2 | unlimited (multi-level) |
| Aggregations | Sum | Sum, Avg, Count, Min, Max, % |
| Drill-down (expand / collapse) | — | ✅ |
| Heatmap (color gradients) | — | ✅ |
| Trend indicators (▲ / ▼ %) | — | ✅ |
| CSV / Excel export | — | ✅ |
| Configurable UI (Rows / Cols / Values pickers) | — | ✅ |
| Saved filter sets / configurations | — | ✅ |
| URL deep linking | — | ✅ |
| Filament Resource Page integration | — | ✅ |
| Priority email support + 1-year updates | — | ✅ |
→ Upgrade to Pro at ptplugins.com — Solo $70 / Unlimited $210
#License
MIT. Made with ❤️ by Premtech agency.
The author
From the same author
Pikaday
Pikaday date picker field for FilamentPHP — lightweight, dependency-light date input with min/max dates, year range, first-day-of-week, and full i18n.
Author:
PtPlugins
Number Input
A locale-aware numeric input field for FilamentPHP v3, v4, and v5. The user types and sees a localized number (European 12.345,67 or US 12,345.67); your model always stores a clean float (12345.67).
Author:
PtPlugins
Auto Filters
Automatic table filters for FilamentPHP v3, v4, and v5 based on your column definitions. Stop writing repetitive filter code — just define your columns and get smart filters for free.
Author:
PtPlugins
Collapsible Column Group
Collapsible (expand/collapse) column groups for FilamentPHP tables — v3, v4, and v5. Click a group header and the columns it spans fold away into a thin placeholder; click again to bring them back.
Author:
PtPlugins
Featured Plugins
A selection of plugins curated by the Filament team
Custom Dashboards
Let your users build and share their own dashboards with a drag-and-drop interface. Define your data sources in PHP and let them do the rest.
Filament
Noir Theme
A theme that gives panels a focused, refined look with near-black surfaces, crisp actions, and restrained color.
Filament
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight like Command Palette to your Filament Panel.
Dennis Koch