1. Go to this page and download the library: Download faridcs/laravel-apm 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/ */
faridcs / laravel-apm example snippets
'providers' => [
/*
* Laravel Framework Service Providers...
*/
// ... more provider
faridcs\ApmLaravel\Providers\ElasticApmServiceProvider::class,
],
'aliases' => [
// more aliases
'ElasticApm' => faridcs\ApmLaravel\Facades\ElasticApm::class,
],
protected $middleware = [
// ... more middleware
\faridcs\ApmLaravel\Middleware\RecordTransaction::class,
];