PHP code example of ekino / newrelic-bundle
1. Go to this page and download the library: Download ekino/newrelic-bundle 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/ */
ekino / newrelic-bundle example snippets
// Bundle
$this->newRelic->addCustomParameter('name', 'john');
// Extension
if (extension_loaded('newrelic')) {
\newrelic_add_custom_parameter('name', 'john');
}
// in AppKernel::registerBundles()
$bundles = array(
// ...
new Ekino\NewRelicBundle\EkinoNewRelicBundle(),
// ...
);