PHP code example of charlesportwoodii / yii-newrelic

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

    

charlesportwoodii / yii-newrelic example snippets


	'behaviors' => array(
		'onBeginRequest' => array(
			 'class' => 'ext.yii-newrelic.behaviors.YiiNewRelicWebAppBehavior',
		),
	),

	$config=dirname(__FILE__).'/../protected/config/main.php';
	stem/PromocastApplication.php');
	$app = new NewRelicApplication($config);
	$app->run();

	'behaviors' => array(
		'onBeginRequest' => array(
			 'class' => 'ext.yii-newrelic.behaviors.YiiNewRelicConsoleAppBehavior',
		),
		'onEndRequest' => array(
			 'class' => 'ext.yii-newrelic.behaviors.YiiNewRelicConsoleAppBehavior',
		),
	),