PHPackages                             dicre/notify-me - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. dicre/notify-me

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

dicre/notify-me
===============

Send Laravel exception/error logs to Telegram, Discord and Slack via a native Monolog custom handler.

v1.1.0(today)00MITPHPPHP ^8.2

Since Jun 13Pushed todayCompare

[ Source](https://github.com/adepane/notify-me)[ Packagist](https://packagist.org/packages/dicre/notify-me)[ RSS](/packages/dicre-notify-me/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (3)Used By (0)

notify-me
=========

[](#notify-me)

Send Laravel exception/error logs to **Telegram**, **Discord** and **Slack** through Laravel's native logging system. Each notifier is a Monolog custom handler, so you wire it up in `config/logging.php` exactly like any other channel — and you can combine them in a `stack` to broadcast to every service at once.

- ✅ **Zero-config auto-reporting** — fill in `.env` and every unhandled exception is notified automatically
- ✅ Built on Monolog `AbstractProcessingHandler` (no log-listener hacks)
- ✅ Uses the `Http` facade — fully fakeable in tests
- ✅ Config-driven credentials via `.env`
- ✅ Graceful: a failed notification is logged to your default channel, never thrown
- ✅ PHP 8.2+ / Laravel 11, 12 &amp; 13

Installation
------------

[](#installation)

```
composer require dicre/notify-me
php artisan vendor:publish --tag=exception-notifier-config
```

Configuration
-------------

[](#configuration)

1. Add your credentials to `.env` (see [`.env.example`](.env.example)):

```
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
TELEGRAM_CHAT_ID=-1001234567890
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
```

That's it. **Auto-reporting is on by default**, so the package hooks Laravel's exception handler and sends a notification for every reported exception to each service whose credentials are present — you don't have to touch `config/logging.php` or `bootstrap/app.php`. To turn it off:

```
EXCEPTION_NOTIFIER_AUTO_REPORT=false
```

When disabled (or when you want to dispatch notifications manually), wire the channels up yourself as shown below.

Manual channel wiring (optional)
--------------------------------

[](#manual-channel-wiring-optional)

Register the channels in `config/logging.php`:

```
use NotifyMe\Factories\TelegramLoggerFactory;
use NotifyMe\Factories\DiscordLoggerFactory;
use NotifyMe\Factories\SlackLoggerFactory;

'channels' => [

    'telegram' => [
        'driver' => 'custom',
        'via'    => TelegramLoggerFactory::class,
        'level'  => 'error',
    ],

    'discord' => [
        'driver' => 'custom',
        'via'    => DiscordLoggerFactory::class,
        'level'  => 'error',
    ],

    'slack' => [
        'driver' => 'custom',
        'via'    => SlackLoggerFactory::class,
        'level'  => 'error',
    ],

    // Broadcast to all three at once.
    'notifiers' => [
        'driver'   => 'stack',
        'channels' => ['telegram', 'discord', 'slack'],
    ],
],
```

Usage
-----

[](#usage)

Log to a single channel:

```
Log::channel('telegram')->error('Checkout failed', [
    'exception' => $e, // the Throwable enriches the notification
]);
```

Broadcast to all channels:

```
Log::channel('notifiers')->critical('Database unreachable', ['exception' => $e]);
```

Route **unhandled** exceptions automatically (Laravel 11+ `bootstrap/app.php`):

```
->withExceptions(function (Exceptions $exceptions) {
    $exceptions->report(function (Throwable $e) {
        Log::channel('notifiers')->error($e->getMessage(), ['exception' => $e]);
    });
});
```

Or set the default log stack in `.env`:

```
LOG_CHANNEL=notifiers
```

What a notification contains
----------------------------

[](#what-a-notification-contains)

Exception class, message, file &amp; line, a truncated stack trace, the environment, the app URL and a timestamp — rendered as `markdown` (default) or `plain`, configurable per channel in `config/exception-notifier.php`.

Development
-----------

[](#development)

```
composer lint        # apply Pint formatting (PSR-12)
composer lint:check  # verify formatting
composer analyse     # PHPStan level 6
composer test        # Pest test suite
composer check       # all of the above
```

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

0d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59744260?v=4)[Ade Pane](/maintainers/adepane)[@adepane](https://github.com/adepane)

---

Tags

laravelloggingnotificationsslackexceptionstelegrammonologdiscord

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dicre-notify-me/health.svg)

```
[![Health](https://phpackages.com/badges/dicre-notify-me/health.svg)](https://phpackages.com/packages/dicre-notify-me)
```

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90335.7M37](/packages/bugsnag-bugsnag-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10822.5k](/packages/naoray-laravel-github-monolog)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2037.5k](/packages/onlime-laravel-http-client-global-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
