PHP code example of blueweb / newrelic-nette

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

    

blueweb / newrelic-nette example snippets


public function __construct(private NewRelic $newRelic) {}

$this->newRelic->addParameter('order.id', $orderId);
$this->newRelic->addParameters(['cart.items' => 3, 'cart.total' => 129.9]);

$this->newRelic->addProvider(fn (): array => ['queue.jobs' => $this->count]);