exploitfate / yii2-newrelic
Yii2 NewRelic package
Installs: 906
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.4.0
- yiisoft/yii2: *
README
Requirements
echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | sudo tee /etc/apt/sources.list.d/newrelic.list wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add - && sudo apt update sudo apt -y install newrelic-php5
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist exploitfate/yii2-newrelic
Configuration
Add newrelic to bootstrap and set component config
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 ], // ... ], ];