kevbaldwyn/newrelic-fuel
最新稳定版本:0.3.7
Composer 安装命令:
composer require kevbaldwyn/newrelic-fuel
包简介
A simple new relic framework integration for FuelPHP
README 文档
README
A simple new relic framework integration for FuelPHP
##Installation With Composer
"require": {
...
"kevbaldwyn/newrelic-fuel":"0.*"
...
}
Composer Update:
$ composer update kevbaldwyn/newrelic-fuel
##Usage To start logging transactions you simply need to add a call to register the event listener somewhere logical such as the end of the bootstrap.php file:
KevBaldwyn\NewRelic\EventListener::register();
To use the page load time monitoring add the following 2 calls to your layout template:
echo KevBaldwyn\NewRelic\View::start();
echo KevBaldwyn\NewRelic\View::end();
For example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Title</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php echo KevBaldwyn\NewRelic\View::start(); ?>
</head>
<body>
....
<?php echo KevBaldwyn\NewRelic\View::end(); ?>
</body>
</html>
If you do not want to output the script tags then pass false to the View::start() and View::end():
<?php echo KevBaldwyn\NewRelic\View::start(false); ?>
<?php echo KevBaldwyn\NewRelic\View::end(false); ?>
统计信息
- 总下载量: 1.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-11-16