PHP code example of exploitfate / yii2-newrelic

1. Go to this page and download the library: Download exploitfate/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/ */

    

exploitfate / yii2-newrelic example snippets


return [
    'bootstrap' => ['newrelic'],
        // ...
    'components' => [
        // ...
        'newrelic' => [
            'class' => 'exploitfate\yii\newrelic\Newrelic',
            'name' => 'website.com', // optional, uses Yii::$app->name by default
            //'enabled' => false // optional, default = true
            //'enableEndUser' => false // optional, default = false
        ],
        // ...
    ],
];