PHP code example of emotality / laravel-telegram-logger

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

    

emotality / laravel-telegram-logger example snippets


'channels' => [
    ...
    'telegram' => [
        'driver' => 'telegram',
        'level' => 'error',
        'cache_ttl' => env('TELEGRAM_CACHE_TTL', 300),
    ],
],

'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'telegram'],
    ...,
],
dotenv
LOG_CHANNEL=telegram