Download the PHP package rafaellaurindo/laravel-telegram-logging without Composer
On this page you can find all versions of the php package rafaellaurindo/laravel-telegram-logging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rafaellaurindo/laravel-telegram-logging
More information about rafaellaurindo/laravel-telegram-logging
Files in rafaellaurindo/laravel-telegram-logging
Package laravel-telegram-logging
Short Description Send Laravel logs to a Telegram chat via Telegram Bot.
License MIT
Homepage https://github.com/rafaellaurindo/laravel-telegram-logging
Informations about the package laravel-telegram-logging
Laravel Telegram Logging
Send Laravel logs to a Telegram chat via Telegram Bot.
Installation
To install the package you can use Composer.
Publish the package configuration file using the following artisan command:
To send messages to your Telegram Chat, you first need a Telegram Bot. If you don't have one, see in this Telegram Instructions how to create one.
Set your Bot Token and chat_id (user, channel or group that will receive log messages) and set as environment variable.
Add in your .env, the follows variables:
Usage
Add the new Log Channel in config/logging.php:
If you use the stack channel as default logger, you can just the telegram channel to your stack:
Or you can simply change the default logging channel in the .env file.
Great! Your Laravel project can now send logs to your Telegram chat.
You can use Laravel Log Facade to send logs to your chat:
Telegram Instructions
To use this package, you need to create a Telegram bot to send messages to your chat.
If you need help, check out these Telegram Instructions that I created for you.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Donations are welcome
If this project help you reduce time to develop, you can give me a cup of coffee :)
Donate with Paypal:
License
All versions of laravel-telegram-logging with dependencies
laravel/framework Version 7.0 || ^8.0 || ^9.0 || ^10.0
monolog/monolog Version 2.*