承接 samuelnogueira/zend-expressive-new-relic 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

samuelnogueira/zend-expressive-new-relic

Composer 安装命令:

composer require samuelnogueira/zend-expressive-new-relic

包简介

Integrates New Relic with Zend Expressive

README 文档

README

Packagist PHP Version Support Latest Version on Packagist Software License

PSR-15 Middleware for New Relic instrumentation of Mezzio apps.

⚠️ Will not work correctly in async applications (ex. Swoole Coroutine) ⚠️

Requirements

  • A Mezzio application (formerly Zend Expressive)

Installation

This package is installable and autoloadable via Composer as samuelnogueira/zend-expressive-new-relic.

composer require samuelnogueira/zend-expressive-new-relic

Example

<?php // config/pipeline.php

use Samuelnogueira\ZendExpressiveNewRelic\Middleware\NewRelicMiddleware;
use Samuelnogueira\ZendExpressiveNewRelic\Middleware\NewRelicTransactionNameMiddleware;
use Mezzio\Router\Middleware\RouteMiddleware;
use Mezzio\Application;

return static function (Application $app): void {
    // (...)
    
    // Profiling middleware 2nd most outer middleware to profile everything
    if (extension_loaded('newrelic')) {
        $app->pipe(NewRelicMiddleware::class);
    }
    
    // (...)

    // Register the routing middleware in the middleware pipeline
    $app->pipe(RouteMiddleware::class);

    // Add more middleware here that needs to introspect the routing results; this
    // might include:
    //
    // - route-based authentication
    // - route-based validation
    // - etc.
    if (extension_loaded('newrelic')) {
        $app->pipe(NewRelicTransactionNameMiddleware::class);
    }
    
    // (...)
};

The MIT License (MIT). Please see LICENSE for more information.

统计信息

  • 总下载量: 38.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固