Search by

mdamin1129 / laravel-feature-heatmap

mdamin1129

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

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-09-14 17:51 UTC

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.php or Kernel.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.