2017 © Pedro Peláez
 

library zend-expressive-new-relic

Integrates New Relic with Zend Expressive

image

samuelnogueira/zend-expressive-new-relic

Integrates New Relic with Zend Expressive

  • Tuesday, June 12, 2018
  • by samuelnogueirajumia
  • Repository
  • 1 Watchers
  • 1 Stars
  • 237 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

zend-expressive-new-relic

Packagist PHP Version Support Latest Version on Packagist ![Software License][ico-license], (*1)

PSR-15 Middleware for New Relic instrumentation of Mezzio apps., (*2)

:warning: Will not work correctly in async applications (ex. Swoole Coroutine) :warning:, (*3)

Requirements

  • PHP ^8.0
  • A Mezzio application (formerly Zend Expressive)

Installation

This package is installable and autoloadable via Composer as samuelnogueira/zend-expressive-new-relic., (*4)

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., (*5)

The Versions

12/06 2018

dev-master

9999999-dev

Integrates New Relic with Zend Expressive

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Nogueira

middleware zend expressive psr-15 new relic

12/06 2018

0.4.0

0.4.0.0

Integrates New Relic with Zend Expressive

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Nogueira

middleware zend expressive psr-15 new relic

15/05 2018

0.3.0

0.3.0.0

PSR-15 Middleware for New Relic instrumentation of PHP middleware apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Nogueira

middleware psr psr-7 http newrelic psr-15

19/03 2018

0.2.0

0.2.0.0

PSR-15 Middleware for New Relic instrumentation of PHP middleware apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Nogueira

middleware psr psr-7 http newrelic psr-15

12/01 2018

0.1.0

0.1.0.0

PSR-15 Middleware for New Relic instrumentation of PHP middleware apps

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samuel Nogueira

middleware psr psr-7 http newrelic psr-15