inspector-apm / inspector-laravel
Code Execution Monitoring, built for developers.
Installs: 1 860 729
Dependents: 2
Suggesters: 1
Security: 0
Stars: 230
Watchers: 3
Forks: 21
Open Issues: 1
pkg:composer/inspector-apm/inspector-laravel
Requires
- php: ^8.1
- illuminate/console: ^9.0|^10.0|^11.0|^12.0
- illuminate/contracts: ^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
- inspector-apm/inspector-php: ^3.16.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
- larastan/larastan: ^2.0|^3.0
- livewire/livewire: ^2.0|^3.7
- orchestra/testbench: ^8.0|^9.0|^10.0
- rector/rector: ^1.0|^2.2
- tomasvotruba/type-coverage: ^0.2|^2.0
- dev-master
- 4.18.8
- 4.18.7
- 4.18.6
- 4.18.5
- 4.18.4
- 4.18.3
- 4.18.2
- 4.18.1
- 4.18.0
- 4.17.0
- 4.16.6
- 4.16.5
- 4.16.4
- 4.16.3
- 4.16.2
- 4.16.1
- 4.16.0
- 4.15.8
- 4.15.7
- 4.15.6
- 4.15.5
- 4.15.4
- 4.15.3
- 4.15.2
- 4.15.1
- 4.15.0
- 4.12.0
- 4.11.3
- 4.11.2
- 4.11.1
- 4.11.0
- 4.10.5
- 4.10.4
- 4.10.2
- 4.10.1
- 4.10.0
- 4.9.21
- 4.9.20
- 4.9.19
- 4.9.18
- 4.9.17
- 4.9.16
- 4.9.15
- 4.9.14
- 4.9.13
- 4.9.12
- 4.9.11
- 4.9.10
- 4.9.9
- 4.9.8
- 4.9.7
- 4.9.6
- 4.9.5
- 4.9.4
- 4.9.3
- 4.9.2
- 4.9.1
- 4.9.0
- 4.8.7
- 4.8.6
- 4.8.4
- 4.8.3
- 4.8.2
- 4.8.1
- 4.8.0
- 4.7.34
- 4.7.33
- 4.7.32
- 4.7.31
- 4.7.30
- 4.7.29
- 4.7.28
- 4.7.27
- 4.7.26
- 4.7.25
- 4.7.24
- 4.7.23
- 4.7.22
- 4.7.21
-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 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.1
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-develop
This package is auto-updated.
Last update: 2026-01-27 17:59:57 UTC
README
Before moving on, please consider giving us a GitHub star ⭐️. Thank you!
Code Execution Monitoring for Laravel applications.
- Requirements
- Install
- Configure the Ingestion Key
- Middleware
- Test everything is working
- AI Assisted Integration
Requirements
- PHP >= 8.1
- Laravel >= 9.0
Install
Install the latest version by:
composer require inspector-apm/inspector-laravel
For Lumen
If your application is based on Lumen you need to manually register the InspectorServiceProvider:
$app->register(\Inspector\Laravel\InspectorServiceProvider::class);
Configure the Ingestion Key
First put the Ingestion Key in your environment file:
INSPECTOR_INGESTION_KEY=[ingestion key]
You can obtain an INSPECTOR_INGESTION_KEY creating a new project in your Inspector account.
Attach the Middleware
To monitor HTTP requests you should attach the WebMonitoringMiddleware in your http application route groups.
Laravel <= 10
/** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ ..., \Inspector\Laravel\Middleware\WebRequestMonitoring::class, ], 'api' => [ ..., \Inspector\Laravel\Middleware\WebRequestMonitoring::class, ] ];
Laravel >= 11
use \Inspector\Laravel\Middleware\WebRequestMonitoring; return Application::configure(basePath: dirname(__DIR__)) ->withMiddleware(function (Middleware $middleware) { // Append the middleware $middleware->appendToGroup('web', WebRequestMonitoring::class) ->appendToGroup('api', WebRequestMonitoring::class); }) ->create();
Test everything is working
Run the command below:
php artisan inspector:test
Go to https://app.inspector.dev to explore your data.
Agentic Integration
You can connect the Inspector library documentation to your coding assistant as a Model Context Protocol (MCP) server.
It makes it easy for tools like Claude Code, Cursor, and VS Code extensions reliably understand what Inspector client library can do, its configurations, how to use it.
Official documentation
Check out the official documentation
Contributing
We encourage you to contribute to Inspector! Please check out the Contribution Guidelines about how to proceed. Join us!
LICENSE
This package is licensed under the MIT license.