PHP code example of dedmytro / laravel-metrics

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

    

dedmytro / laravel-metrics example snippets


    'widgets' => [
        MysqlConnections::class,
        RequestsPerSecond::class,
        UsersOnline::class,
    ],
bash
$ php artisan metrics:install
bash
$ php artisan metrics:widget ActiveUsersCount --type=value