2017 © Pedro Peláez
 

yii2-extension yii2-telegram-log

Yii 2.0 telegram log target, send logs to the telegram chats or channels

image

airani/yii2-telegram-log

Yii 2.0 telegram log target, send logs to the telegram chats or channels

  • Thursday, July 14, 2016
  • by airani
  • Repository
  • 1 Watchers
  • 8 Stars
  • 4,917 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

Yii 2.0 Telegram Log Target

Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require -vv --prefer-dist airani/yii2-telegram-log

or add below line to the require section of composer.json file and then run php composer.phar update -vv --prefer-dist --profile, (*4)

"airani/yii2-telegram-log": "*"

How To Use

You should set telegram bot token and chatId in your config file like below code:, (*5)

'log' => [
    'targets' => [
        [
            'class' => 'airani\log\TelegramTarget',
            'levels' => ['error'],
            'botToken' => '123456:abcde', // bot token secret key
            'chatId' => '123456', // chat id or channel username with @ like 12345 or @channel
        ],
    ],
],

Changelog

1.0

  • First version

The Versions

14/07 2016

dev-master

9999999-dev

Yii 2.0 telegram log target, send logs to the telegram chats or channels

  Sources   Download

BSD-3-Clause

The Requires

 

by Ali Irani

log yii2 bot telegram

14/07 2016

1.0

1.0.0.0

Yii 2.0 telegram log target, send logs to the telegram chats or channels

  Sources   Download

BSD-3-Clause

The Requires

 

by Ali Irani

log yii2 bot telegram