davillo / laravel-newrelic
New Relic library for the laravel/lumen frameworks
dev-master
2020-08-31 17:27 UTC
Requires
- php: ^7.2.5
- illuminate/support: ^7.0
- intouch/newrelic: ^1.0
This package is auto-updated.
Last update: 2025-01-29 06:56:47 UTC
README
- PHP >= 7.2
- Composer
Usage
Installation
Run the following command to install the package through Composer:
composer require davillo/laravel-newrelic
Bootstrapping
This will ensure that exceptions are correctly reported to New Relic. Now, add the middleware too:
$app->middleware([ ... Davillo\NewRelic\NewRelicMiddleware::class ]);
register the service provider:
$app->register(Davillo\NewRelic\NewRelicServiceProvider::class);
ENV
finally, on the .env of the lumen/laravel app, register two new key-value variables NEWRELIC_APP_NAME='The name of the app on new relic dashboard' NEWRELIC_APP_LICENSE='new relic dashboard key'