Pinert

Pine Alert is a Laravel package that sends detailed error notifications to Slack when exceptions occur in your Laravel applications.

Features

  • Automatic error reporting to Slack
  • Detailed exception information including stack traces
  • Perfect for multiple project environments
  • Configurable error levels and rate limiting
  • Custom project identification
  • Environment-specific filtering
  • Manual error reporting capability

Installation

You can install the package via composer:

composer require dennenboom/pinert

Publish Configuration

After installing, publish the configuration file:

php artisan vendor:publish --provider="Dennenboom\Pinert\Providers\PinertServiceProvider" --tag="config"

Configuration

Basic Configuration

Add these variables to your .env file:

SLACK_ERROR_WEBHOOK_URL=https://hooks.slack.com/services/YOUR/WEBHOOK/URL
SLACK_ERROR_CHANNEL=
SLACK_ERROR_USERNAME="Error Reporter"
SLACK_ERROR_ICON=:rotating_light:

Advanced Configuration

You can further customize the behavior by setting these environment variables:

SLACK_ERROR_MAX_STACK_TRACE_LINES=5
SLACK_ERROR_MIN_LEVEL=error
SLACK_ERROR_ENVIRONMENTS=production,staging
SLACK_ERROR_RATE_LIMIT=60

Usage

Automatic Error Reporting

Once installed and configured, Pinert will automatically send notifications to Slack whenever a reportable exception occurs in your application.

Manual Error Reporting

You can also report exceptions manually:

use Dennenboom\Pinert\Facades\Pinert;

try {
    // Your code that might throw an exception
} catch (\Throwable $e) {
    // Manually report to Slack
    Pinert::reportToSlack($e, request()->all());
}

Why Choose Pinert?

Pinert helps you stay on top of your application's health by:

  • Real-time Notifications: Get instant alerts when errors occur
  • Detailed Information: Stack traces and context for quick debugging
  • Multi-environment Support: Perfect for managing multiple projects
  • Rate Limiting: Avoid spam with intelligent rate limiting
  • Easy Setup: Simple configuration with sensible defaults

GitHub Repository

Package Info

License: MIT
PHP Version: ^8.0
Laravel: ^9.0
Package: dennenboom/pinert

Klaar om samen te werken?

Wij in elk geval wel! Vertel ons alles over jouw project via onderstaand contactformulier.
Dan bespreken we binnenkort de beste oplossing voor jouw vraag.

Contactformulier

*deze gegevens worden enkel gebruikt om jouw bericht af te handelen. Door dit formulier in te vullen ga je akkoord met de privacy policy van Dennenboom.