Download the PHP package uchup07/laravel-logging-telegram without Composer
On this page you can find all versions of the php package uchup07/laravel-logging-telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uchup07/laravel-logging-telegram
More information about uchup07/laravel-logging-telegram
Files in uchup07/laravel-logging-telegram
Package laravel-logging-telegram
Short Description Custom Telegram Driver for Laravel Logging
License MIT
Homepage https://github.com/uchup07/laravel-logging-telegram
Informations about the package laravel-logging-telegram
Laravel Logging Telegram
Custom Logging Laravel for sending log to telegram chat via Bot
Installation
You can install the package via composer:
Added environment parameters.
Create Telegram Bot and get Token
For using this package you need to create Telegram bot
- Go to @BotFather in the Telegram
- Send
/newbot
- Set up name and bot-name for your bot.
- Get token and add it to your .env file (it is written above)
- Go to your bot and send
/start
message
For detail guide about telegram bot @BotFather on telegram
To check Chat ID please check TELEGRAM API getUpdates
Added Config
Add to config/logging.php file new channel:
If your default log channel is a stack, you can add it to the stack channel like this
Usage
Publish config file and views
Telegram Logging Formats
You can choose among two different formats that you can specify in the .env
file like this :
It is possible to create other blade templates and reference them in the TELEGRAM_LOG_TEMPLATE
entry
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Yusuf Mulhajat
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
All versions of laravel-logging-telegram with dependencies
monolog/monolog Version ^1.23|^2.0
illuminate/support Version ^8.0 || ^9.0