PHP code example of los / mezzio-swoole-newrelic

1. Go to this page and download the library: Download los/mezzio-swoole-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/ */

    

los / mezzio-swoole-newrelic example snippets


    // Swoole config to overwrite some services (if installed)
    class_exists(\Mezzio\Swoole\ConfigProvider::class)
        ? \Mezzio\Swoole\ConfigProvider::class
        : function () {
            return[];
        },
    \Los\MezzioSwooleNewrelic\ConfigProvider::class,

$app->pipe(RouteMiddleware::class);
$app->pipe(NewRelicMiddleware::class);