yemeni-open-source/laravel-telegram-log 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yemeni-open-source/laravel-telegram-log

最新稳定版本:8.0.0

Composer 安装命令:

composer require yemeni-open-source/laravel-telegram-log

包简介

Laravel telegram log is a package that can catch your logs all quite simply.

README 文档

README

Laravel Telegram Log

Packagist Downloads Packagist Version GitHub

Laravel Telegram log

Laravel telegram log is a package that can catch your logs all quite simply.

Requirments

This package is tested with Laravel v8 it my not work on Laravel v7 or v6 or v5

php ^7.3|^8.0
Composer ^2.3
Laravel ^8.0

Installation

Install the package by using composer:

composer require yemeni-open-source/laravel-telegram-log

Configure Your Needs

You can scape this step if you want to use default configuration, but you can publish telegram logs configuration by running:

php artisan vendor:publish --provider="YemeniOpenSource\TelegramLog\TelegramLogServiceProvider" --tag=config

This will merge the config/telegramlog.php config file to your root config directory. You are free to modify it.

Setup

Create Telegram bot

Create new telegram bot as following steps:

  • visit @BotFather
  • send /newbot to the @BotFather chat.
  • replay with the name of your new bot.
  • then replay with the username for your bot.
  • copy your bot token.

Open New Chat with your created bot

Update your .env file

LOG_CHANNEL=telegram
TELEGRAM_LOGGER_BOT_TOKEN=<your-bot-api-token>
TELEGRAM_LOGGER_CHAT_ID=<your-bot-chat-id>

Add Telegram Log Channel

  • Add the telegram logging channel to your config/logging.php.
'channels' => [
    // ...
    'telegram' => [
        'driver' => 'custom',
        'via' => YemeniOpenSource\TelegramLog\Services\TelegramService::class,
        'level' => 'debug',
    ],
    // ...
],

Credits

The MIT License (MIT). Please see MIT license File for more information.

统计信息

  • 总下载量: 285
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固