PHP code example of thomasjohnkane / slow-query-notifier

1. Go to this page and download the library: Download thomasjohnkane/slow-query-notifier 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/ */

    

thomasjohnkane / slow-query-notifier example snippets


// app/Providers/AppServiceProvider.php

use SlowQueryNotifier\SlowQueryNotifierFacade as SlowQueryNotifier;

public function boot()
{
    SlowQueryNotifier::toEmail('[email protected]');
}

SlowQueryNotifier::threshold(200)->toEmail('[email protected]');
bash
php artisan sqn:test