PHP code example of palzin-apm / palzin-laravel

1. Go to this page and download the library: Download palzin-apm/palzin-laravel 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/ */

    

palzin-apm / palzin-laravel example snippets


$app->register(\Palzin\Laravel\PalzinServiceProvider::class);

/**
 * The application's route middleware groups.
 *
 * @var array
 */
protected $middlewareGroups = [
    'web' => [
        ...,
        \Palzin\Laravel\Middleware\WebRequestMonitoring::class,
    ],

    'api' => [
        ...,
        \Palzin\Laravel\Middleware\WebRequestMonitoring::class,
    ]

php artisan palzin:test