intouch/newrelic 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

intouch/newrelic

最新稳定版本:v2.0.0

Composer 安装命令:

composer require intouch/newrelic

包简介

Namespaced Wrapper for NewRelic PHP Agent

README 文档

README

Build Status Coveralls Latest Version on Packagist Total Downloads StyleCI

NewRelic PHP Agent API Wrapper

This is simply a pass-through wrapper to the NewRelic PHP Agent API in a namespaced class available via composer. No magic here.

Installation

Run

$ composer require intouch/newrelic

Basic Use

The most basic use is to simple include the class:

use Intouch\Newrelic\Newrelic;

$newrelic = new Newrelic();

This will load the class and, if the NewRelic agent is installed, give you access to the API. If the agent is not installed, it will simply act as a pass-through and return false from all methods.

If you want some notification if the NewRelic agent cannot be loaded, pass true to the constructor:

use Intouch\Newrelic\Newrelic;

$newrelic = new Newrelic(true);

If the agent API is not found, this will now throw a RuntimeException.

统计信息

  • 总下载量: 3.68M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 39
  • 点击次数: 1
  • 依赖项目数: 17
  • 推荐数: 0

GitHub 信息

  • Stars: 37
  • Watchers: 6
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2013-04-22