2017 © Pedro Peláez
 

library monolog-telegram

Laravel 5.6 Monolog custom telegram channel

image

gordonzero/monolog-telegram

Laravel 5.6 Monolog custom telegram channel

  • Thursday, April 19, 2018
  • by gordonzero
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 300 % Grown

The README.md

Laravel 5.6 Monolog Telegram Notification Handler.

This package will sends an message Via Telegram to a spedified group or user speicifed by the LOG_TELEGRAM_CHAT_ID., (*1)

Installation

composer require gordonzero/monolog-telegram

Open up config/logging.php and find the channels key. Add the following channel to the list., (*2)

'telegram' => [
    'driver' => 'custom',
    'via'=> \Logger\TelegramLogger::class,
    'botKey' => env('LOG_TELEGRAM_BOT_ID'),
    'chatId' => env('LOG_TELEGRAM_CHAT_ID'),
],

Add the following information to your .env file. Your LOG_TELEGRAM_BOT_ID is for the your bot key and LOG_TELEGRAM_CHAT_ID is the chat ID for a telegram user or channel., (*3)

LOG_TELEGRAM_BOT_ID=123456789:ABCDEFGHIJKLMNOPQUSTUFWXYZabcdefghi
LOG_TELEGRAM_CHAT_ID=12345678

This package contains a blank Service Provider. This is only to let you know that the package is detected and working properly., (*4)

Side Notes

Currently it does not have any built in methods for figuring out what your CHAT_ID is. This may come in a future version or you can check around for posts that tell you how to find this ID number., (*5)

The Versions

19/04 2018

dev-master

9999999-dev https://github.com/gordonzero/monolog-telegram

Laravel 5.6 Monolog custom telegram channel

  Sources   Download

MIT

The Requires

 

laravel log monolog bot telegram laravel56

19/04 2018

v1.0

1.0.0.0 https://github.com/gordonzero/monolog-telegram

Laravel 5.6 Monolog custom telegram channel

  Sources   Download

MIT

The Requires

 

laravel log monolog bot telegram laravel56