Download the PHP package magidmroueh/scout-apm-lumen without Composer
On this page you can find all versions of the php package magidmroueh/scout-apm-lumen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download magidmroueh/scout-apm-lumen
More information about magidmroueh/scout-apm-lumen
Files in magidmroueh/scout-apm-lumen
Package scout-apm-lumen
Short Description Scout Application Performance Monitoring Agent - https://scoutapm.com
License MIT
Homepage https://scoutapm.com/
Informations about the package scout-apm-lumen
Scout Lumen APM Agent
Monitor the performance of PHP Laravel applications with Scout's PHP APM Agent. Detailed performance metrics and transaction traces are collected once the scout-apm package is installed and configured.
Important: Lumen
To get this working with Lumen, there are a couple of changes you need to make:
- Ensure
$app->register(App\Providers\EventServiceProvider::class);is registered in app.php - Add
$app->register(\Scoutapm\Laravel\Providers\ScoutApmServiceProvider::class);as the final registered provider in app.php - Add the following middleware to the global middleware in app.php:
Requirements
- PHP Version: PHP 7.1+
- Laravel Version: 5.5+
Quick Start
A Scout account is required. Signup for Scout.
Then use Laravel's artisan vendor:publish to ensure configuration can be cached:
Configuration
In your .env file, make sure you set a few configuration variables:
Your key can be found in the Scout organization settings page.
Documentation
For full installation and troubleshooting documentation, visit our help site.
Support
Please contact us at [email protected] or create an issue in this repo.
Capabilities
The Laravel library:
- Registers a service
\Scoutapm\ScoutApmAgent::classinto the container (useful for dependency injection) - Provides a Facade
\Scoutapm\Laravel\Facades\ScoutApm - Wraps view engines to monitor view rendering times
- Injects several middleware for monitoring controllers and sending statistics to the Scout Core Agent
- Adds a listener to the database connection to instrument SQL queries
Custom Instrumentation
In order to perform custom instrumentation, you can wrap your code in a call to the instrument method. For example,
given some code to be monitored:
Using the provided Facade for Laravel, you can wrap the call and it will be monitored.
Disclaimer
This package is a fork from bitlogicdev/scout-apm-laravel
All versions of scout-apm-lumen with dependencies
illuminate/contracts Version ^5.1|^6.0|^7.0|^8.0
illuminate/http Version ^5.1|^6.0|^7.0|^8.0
illuminate/routing Version ^5.1|^6.0|^7.0|^8.0
illuminate/support Version ^5.1|^6.0|^7.0|^8.0
illuminate/view Version ^5.1|^6.0|^7.0|^8.0
ramsey/uuid Version ^3.0|^4.1.1
psr/log Version ^1.0
scoutapp/scout-apm-php Version ^4.2