plenta/contao-mimir

Send exceptions within your Contao installation directly to your Slack workspace.

Fund package maintenance!
plenta

Installs: 168

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Type:contao-bundle

v1.3 2024-08-07 11:07 UTC

This package is auto-updated.

Last update: 2024-11-07 11:36:20 UTC


README

Mimir watches over your code and sends any exception he encounters directly to your Slack workspace.

Installation

Install using Contao Manager

Search for slack or exception and you will find this extension.

Install using Composer

composer require plenta/contao-mimir

Setup

  1. Set up a Slack webhook (See Slack API documentation).
  2. Install Mimir.
  3. Configure Mimir

Configuration

Exception white- and blacklisting

There are some exceptions you commonly don't want to be notified about because they don't mean there's something wrong with your code (e.g. Contao's RedirectResponseExceptions). These exceptions are blacklisted by default. You can, however, whitelist them if you want to be notified about them. You can also blacklist exceptions you don't want to be notified about.

Configuration

You can easily configure Mimir through your parameters.yml:

plenta_mimir:
  webhook: 'YourWebhookURL' # required
  exceptions: # optional
    whitelist:
      - 'Full/Exception/Class/Name'
    blacklist:
      - 'Full/Exception/Class/Name'
  debug: true # optional - Default false - Set to true if you want to receive messages in debug environment

System requirements

  • PHP: ^8.1
  • Contao: ^4.13 || ^5.1 (and later)