Skip to content

Commit

Permalink
Added older Laravel supports
Browse files Browse the repository at this point in the history
  • Loading branch information
aqhmal committed Jan 31, 2022
1 parent 279027b commit 8bb0782
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Laravel Telegram Log

A package to send Laravel logs to Telegram via Telegram Bot. This package adds the Lumen support for [this](https://github.com/rafaellaurindo/laravel-telegram-logging) Laravel package. Currently tested for support Laravel/Lumen 8 and not tested yet for earlier versions.
Laravel/Lumen package to send logs to Telegram via Telegram Bot. This package adds the Lumen support for [this](https://github.com/rafaellaurindo/laravel-telegram-logging) Laravel package.

This version supports
- Laravel 5.6, 5.7, 5.8, 6.x, 7.x, and 8.x.
- Lumen 8.x (older version not tested)

[![PHP Version Require](https://poser.pugx.org/aqhmal/laravel-telegram-log/require/php)](https://packagist.org/packages/aqhmal/laravel-telegram-log)
[![Total Downloads](https://poser.pugx.org/aqhmal/laravel-telegram-log/downloads)](https://packagist.org/packages/aqhmal/laravel-telegram-log)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
}
],
"require": {
"php": "^7.3|^8.0",
"monolog/monolog": "^2.3"
"php": "^7.1|^7.2|^7.3|^7.4|^8.0",
"monolog/monolog": "^1.26|^2.3"
},
"autoload": {
"files": [
Expand Down
6 changes: 3 additions & 3 deletions src/TelegramLogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@ class TelegramLogHandler extends AbstractProcessingHandler
*
* @var string
*/
private string $applicationName;
private $applicationName;

/**
* The application environment.
*
* @var string
*/
private string $applicationEnvironment;
private $applicationEnvironment;

/**
* The application URL.
*
* @var string
*/
protected string $applicationUrl;
protected $applicationUrl;

/**
* The instance of TelegramService
Expand Down

0 comments on commit 8bb0782

Please sign in to comment.