Download the PHP package muhammad-nawlo/route-tracker without Composer
On this page you can find all versions of the php package muhammad-nawlo/route-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muhammad-nawlo/route-tracker
More information about muhammad-nawlo/route-tracker
Files in muhammad-nawlo/route-tracker
Package route-tracker
Short Description Track usage and hits of Laravel routes automatically with this simple package.
License MIT
Homepage https://github.com/muhammad-nawlo/route-tracker
Informations about the package route-tracker
Route Tracker for Laravel
Find out which routes in your Laravel app are actually used. Route Tracker counts hits and records the last-used time for every route, so you can spot dead endpoints before you delete or refactor them.
Features
- Zero setup: the middleware registers itself on the
webgroup - Records hit count and last-used timestamp per route (route name, or path for unnamed routes)
- Stores data as JSON on your default filesystem disk, so it works with local storage, S3 and any other Laravel disk
php artisan route:usageprints a usage table- Switch it off with one environment variable
- Supports Laravel 10, 11 and 12 on PHP 8.0+
Installation
The service provider is auto-discovered. Optionally publish the config:
Usage
Browse your app as normal, then run:
The raw data lives in route-usage.json on the default disk.
To track API routes too, add the middleware to the api group yourself:
Configuration
Set ROUTE_TRACKER_ENABLED=false to turn tracking off.
Every request reads and writes one JSON file, so the package is best suited to development, staging and low-to-medium traffic apps.
Testing
Changelog
See CHANGELOG.md.
License
MIT. See LICENSE.md.
All versions of route-tracker with dependencies
ext-json Version *
illuminate/console Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0