Download the PHP package naoray/laravel-github-monolog without Composer

On this page you can find all versions of the php package naoray/laravel-github-monolog. 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-github-monolog

Laravel GitHub Issue Logger

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Automatically create GitHub issues from your Laravel exceptions & logs. Perfect for smaller projects without the need for full-featured logging services.

Requirements

Features

Showcase

When an error occurs in your application, a GitHub issue is automatically created with comprehensive error information and stack trace:

issue raised

The issue appears in your repository with all the detailed information about the error:

issue detail

If the same error occurs again, instead of creating a duplicate, a new comment is automatically added to track the occurrence:

comment added

Installation

Install with Composer:

Configuration

Add the GitHub logging channel to config/logging.php:

Add these variables to your .env file:

You can use the github log channel as your default LOG_CHANNEL or add it as part of your stack in LOG_STACK.

Getting a GitHub Token

To obtain a Personal Access Token:

  1. Go to Generate a new token (this link pre-selects the required scopes)
  2. Review the pre-selected scopes (the repo scope should be checked)
  3. Click "Generate token"
  4. Copy the token immediately (you won't be able to access it again after leaving the page)
  5. Add it to your .env file as GITHUB_TOKEN

Note: The token requires the repo scope to create issues in both public and private repositories.

Usage

Whenever an exception is thrown it will be logged as an issue to your repository.

You can also use it like any other Laravel logging channel:

Advanced Configuration

Customizing Templates

The package uses Markdown templates to format issues and comments. You can customize these templates by publishing them:

This will copy the templates to resources/views/vendor/github-monolog/ where you can modify them:

Important:

  • The templates use HTML comments as section markers (e.g. <!-- stacktrace:start --> and <!-- stacktrace:end -->). These markers are used to intelligently remove empty sections from the rendered output. Please keep these markers intact when customizing the templates.
  • If you've previously published and customized templates, you may need to republish them to get the latest structure with triage headers and collapsible sections. Compare your custom templates with the new defaults and migrate any customizations.

Available template variables:

Deduplication

Group similar errors to avoid duplicate issues. The package uses Laravel's cache system for deduplication storage.

For cache store configuration, refer to the Laravel Cache documentation.

Buffering

Buffer logs to reduce GitHub API calls. Customize the buffer size and overflow behavior to optimize performance:

When buffering is active:

Tracing

Note: Tracing is opt-in and disabled by default. To enable tracing capabilities, you must add the tracing configuration to your config/logging.php file under the github channel configuration.

The package includes optional tracing capabilities that allow you to track requests, user data, queries, and more in your logs. Enable this feature through your configuration:

Request Tracing

When request tracing is enabled, the following data is automatically logged:

Route Tracing

When route tracing is enabled, the following route information is logged:

User Tracing

By default, user tracing only logs the user identifier to comply with GDPR regulations. However, you can customize the user data being logged by setting your own resolver:

Note: When customizing user data collection, ensure you comply with relevant privacy regulations and only collect necessary information.

Query Tracing

When query tracing is enabled, recent database queries are logged with:

You can limit the number of queries tracked using the limit configuration option.

Job Tracing

When job tracing is enabled, queue job context is logged including:

Command Tracing

When command tracing is enabled, artisan command context is logged including:

Outgoing Request Tracing

When outgoing request tracing is enabled, HTTP requests made by your application are logged with:

You can limit the number of outgoing requests tracked using the limit configuration option.

Environment Tracing

When environment tracing is enabled, application environment data is collected including:

Session Tracing

When session tracing is enabled, session data is logged including:

Data Redaction

The package automatically redacts sensitive data from headers, payloads, and query bindings. You can customize what gets redacted:

Signature Generator

Control how errors are grouped by customizing the signature generator. By default, the package uses a generator that creates signatures based on exception details or log message content.

You can implement your own signature generator by implementing the SignatureGeneratorInterface:

Testing

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of laravel-github-monolog with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/cache Version ^11.0||^12.0||^13.0
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/filesystem Version ^11.0||^12.0||^13.0
illuminate/http Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.37||^12.0||^13.0
monolog/monolog Version ^3.6
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 naoray/laravel-github-monolog contains the following files

Loading the files please wait ...