PHP code example of pep / php-newrelic
1. Go to this page and download the library: Download pep/php-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/ */
pep / php-newrelic example snippets
ep\NewRelic;
NewRelic::noticeError('Testing PHP client for NewRelic');
ep\NewRelic;
use Pep\NewRelic\MethodNotFoundException as NewRelicMethodNotFoundException;
try {
NewRelic::thisMethodDoesNotExist('Testing PHP client for NewRelic');
} catch (NewRelicMethodNotFoundException $e) {}
shell
composer