1. Go to this page and download the library: Download bazilio/yii2-newrelic library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bazilio / yii2-newrelic example snippets
return [
'bootstrap' => ['newrelic'],
'components' => [
// ...
'newrelic' => [
'enableEndUser' => true, // MIND THIS! It is JS instrumentation for end user. Default is true.
'class' => 'bazilio\yii\newrelic\Newrelic',
'name' => 'My App Frontend', // optional, uses Yii::$app->name by default
'handler' => 'class/name', // optional, your custom handler
'licence' => '...', // optional
'enabled' => false // optional, default = true
]
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.