Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airani/yii2-telegram-log
Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels
https://github.com/airani/yii2-telegram-log
Last synced: about 7 hours ago
JSON representation
Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels
- Host: GitHub
- URL: https://github.com/airani/yii2-telegram-log
- Owner: airani
- Created: 2016-07-14T07:37:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T07:44:37.000Z (over 8 years ago)
- Last Synced: 2024-09-16T02:38:13.330Z (about 2 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 15
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yii 2.0 Telegram Log Target #
Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels
## Installation ##
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
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`
```
"airani/yii2-telegram-log": "*"
```## How To Use ##
You should set [telegram bot token](https://core.telegram.org/bots#botfather) and chatId in your config file like below code:
```
'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