mdamin1129 / laravel-feature-heatmap
Track which controllers/routes/features are used by which users, and visualize it as a heatmap.
Package info
github.com/mdamin1129/laravel-feature-heatmap
Language:Blade
Type:composer-plugin
pkg:composer/mdamin1129/laravel-feature-heatmap
Requires
- php: ^8.1
- composer-plugin-api: ^2.0
- illuminate/database: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-15 00:09:15 UTC
README
A Powerful Laravel Feature Usage Tracking & Heatmap Dashboard Package by Amin
Track controllers, routes, users, and feature adoption in your Laravel application with zero configuration.
โจ Features
- โก Zero-Setup Global Tracking โ Automatically registers middleware to track all application routes with zero manual configuration in
web.phporKernel.php - ๐ฅ Interactive Heatmap Dashboard โ Visualise Feature ร Date and Feature ร User usage patterns with interactive charts
- ๐ค User-Wise Tracking & Drill-Down โ Track individual user activity across modules and features with detailed modal drill-downs
- ๐ฅ CSV Activity Reports โ Export per-user feature interaction reports directly from the dashboard with a single click
- ๐ค Unused Feature Discovery โ Detect features dormant for 30+ days to clean up technical debt and refactor safely
- โก Non-Blocking Queue Logger โ Dispatches logging jobs asynchronously using Laravel queues to maintain ultra-fast HTTP responses
- ๐งน Daily Summary & Auto-Pruning โ Aggregates high-volume raw logs into lightweight daily summary records to keep your database fast and lean
- โ๏ธ Highly Configurable โ Easily exclude debug/admin routes, configure authorization gates, user models, and table schema mappings
๐ What It Tracks
The package focuses on code-level feature adoption โ identifying exactly which controllers, methods, and routes are used by whom.
| Tracked Data | Source / Description |
|---|---|
| Controller & Action | e.g. App\Http\Controllers\OrderController@store |
| Route Name | e.g. orders.store |
| HTTP Method | GET, POST, PUT, DELETE, etc. |
| Request URI | Full endpoint URI path |
| User Identity | Authenticated user_id, resolved with User Name & Email |
| Timestamps | High-precision hit timestamps & daily usage frequency |
๐ฆ Installation
composer require mdamin1129/laravel-feature-heatmap
Publish Configuration (Optional)
php artisan vendor:publish --tag=feature-heatmap-config
Run Migrations
php artisan migrate
This creates two optimized database tables:
feature_usage_logs: Stores raw per-request interaction logs.feature_usage_summaries: Stores aggregated daily usage statistics for fast heatmap rendering.
๐ Usage
Automatic Global Tracking (Zero Setup)
By default, the package automatically registers and attaches the tracking middleware to all web and api route groups inside the FeatureHeatmapServiceProvider.
No manual edits to web.php, api.php, or bootstrap/app.php are required!
๐ License
The MIT License (MIT). Please see License File for more information.