/telegram-handler

Monolog handler to send log by Telegram

Primary LanguagePHPMIT LicenseMIT

TelegramHandler

SensioLabsInsight Build Status Latest Stable Version Total Downloads License

Monolog handler to send log by Telegram. This project is in the approval stage to be implemented officially in Monolog.

Requirements

  • PHP 5.4 or above
  • Yii 2.0.0 or above

Instalation with composer

  1. Open your project directory;
  2. Run composer require mero/telegram-handler to add TelegramHandler in your project vendor.

Declaring handler object

// ...

$handler = new \Mero\Monolog\Handler\TelegramHandler(
    'TOKEN',
    'CHAT_ID',
    Logger::CRITICAL
);

// ...