Download the PHP package haythem-bekir/laravel-discord-logger without Composer

On this page you can find all versions of the php package haythem-bekir/laravel-discord-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-discord-logger

Laravel Discord Logger

Latest Version on Packagist Total Downloads License

A Laravel package that sends daily log statistics reports to Discord. Get comprehensive insights about your application's logs delivered to your Discord channel every day.

Why Daily Reports?

Instead of alert fatigue from real-time notifications, this package provides:

Features

Requirements

Installation

Install via Composer:

Publish the configuration file:

Quick Start

1. Get Your Discord Webhook URL

  1. Go to your Discord server settings
  2. Navigate to Integrations → Webhooks
  3. Click New Webhook
  4. Choose the channel for reports
  5. Copy the webhook URL

2. Configure Your Environment

Add to your .env file:

3. Schedule the Daily Report

Laravel 11+ (routes/console.php):

Laravel 10 (app/Console/Kernel.php):

Make sure your scheduler is running:

That's it! You'll receive daily reports at 8:00 AM (UTC).

Usage

Manual Execution

Run reports manually anytime:

Programmatic Usage

Use the actions directly in your code:

Configuration

The package provides several customization options in config/discord-logger.php:

Log Viewer Integration

If you have a Laravel Log Viewer package installed, error messages in Discord reports will automatically become clickable links that take you directly to the log viewer!

Supported Log Viewers

How It Works

  1. Install any supported log viewer package:

  2. Ensure your APP_URL is configured in .env:

  3. Error messages in Discord will automatically become clickable:

Clicking the error takes you directly to the log viewer with a search query pre-filled, making it easy to investigate issues!

Configuration

You can customize the log viewer integration:

What the Report Includes

Each daily report contains:

Example Discord Message

💡 Note: If you have a Log Viewer package installed, the error messages become clickable links!

Testing

Architecture

This package follows SOLID principles and Domain-Driven Design:

This makes the package:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Upgrading

Please see UPGRADE for upgrade instructions.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Credits

License

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


All versions of laravel-discord-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.11
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package haythem-bekir/laravel-discord-logger contains the following files

Loading the files please wait ...