PHPackages                             etsvthor/telegram-failed-job-monitor - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. etsvthor/telegram-failed-job-monitor

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

etsvthor/telegram-failed-job-monitor
====================================

Failed job monitor which sends Telegram notifications on job failure

0.3.0(8mo ago)11.8kMITPHPPHP ^8.1

Since Jan 8Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/etsvThor/telegram-failed-job-monitor)[ Packagist](https://packagist.org/packages/etsvthor/telegram-failed-job-monitor)[ Docs](https://github.com/etsvthor/telegram-failed-job-monitor)[ RSS](/packages/etsvthor-telegram-failed-job-monitor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

Failed job monitor with Telegram notifications and rate-limiter
===============================================================

[](#failed-job-monitor-with-telegram-notifications-and-rate-limiter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d4344788121ecf6d93b5563501c57e047ccfdee5988aaea8246ef989ad6b113e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6574737674686f722f74656c656772616d2d6661696c65642d6a6f622d6d6f6e69746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/etsvthor/telegram-failed-job-monitor)

Extension to [spatie/laravel-failed-job-monitor](/https://github.com/spatie/laravel-failed-job-monitor) to add support for Telegram notifications and add a rate-limiter to not get spammed in case certain jobs run regularly.

See [spatie/laravel-failed-job-monitor](/https://github.com/spatie/laravel-failed-job-monitor) and [laravel-notification-channels/telegram](https://github.com/laravel-notification-channels/telegram/tree/master/src) for more information.

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

[](#installation)

You can install the package via composer:

```
composer require etsvthor/telegram-failed-job-monitor
```

You must publish the config file:

```
php artisan vendor:publish --tag=telegram-failed-job-monitor
```

This is the contents of the published config file. This overwrites the config of spatie/laravel-failed-job-monitor. By default, the `notificationFilter` is used to create the rate-limit:

```
return [

    /*
     * The notification that will be sent when a job fails.
     */
    'notification' => EtsvThor\TelegramFailedJobMonitor\Notification::class,

    /*
     * The notifiable to which the notification will be sent. The default
     * notifiable will use the mail and slack configuration specified
     * in this config file.
     */
    'notifiable' => EtsvThor\TelegramFailedJobMonitor\Notifiable::class,

    /*
     * By default notifications are sent for all failures. You can pass a callable to filter
     * out certain notifications. The given callable will receive the notification. If the callable
     * return false, the notification will not be sent.
     */
    'notificationFilter' => [EtsvThor\TelegramFailedJobMonitor\Notification::class, 'notificationFilter'],

    /*
     * The channels to which the notification will be sent.
     */
    'channels' => ['telegram'],

    /**
     * How many seconds each failed job will trigger a notification. By default, it does not rate-limit.
     */
    'default-rate-limit' => env('FAILED_JOB_DEFAULT_RATELIMIT'),

    /**
     * How many seconds at minimum between notifications for this job. If nothing is specified, the default-rate-limit
     * will be used.
     */
    'rate-limit' => [
        // App\Jobs\MyJob:class => '3600',
    ],

    'mail' => [
        'to' => ['email@example.com'],
    ],

    'slack' => [
        'webhook_url' => env('FAILED_JOB_SLACK_WEBHOOK_URL'),
    ],
];
```

### Telegram bot

[](#telegram-bot)

Talk to @BotFather and generate a Bot API Token.

Then add your newly created bot to the Telegram chat where you want notifications to be send.

Get your `chat_id` by running `curl https://api.telegram.org/bot/getUpdates` and retrieving the `chat_id`from the output.

Then, configure your Telegram Bot API Token:

```
# config/services.php

'telegram-bot-api' => [
    'token' => env('TELEGRAM_BOT_TOKEN'),
    'chat_id' => env('TELEGRAM_CHAT_ID'),
],
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance60

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

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 ~242 days

Total

5

Last Release

251d ago

PHP version history (2 changes)0.1.0PHP ^8.0

0.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/cad0ecaeecab3e95fba5da341f2b1cf228f4f99decea3c5af0a25a83fcb32929?d=identicon)[dododedodonl](/maintainers/dododedodonl)

![](https://www.gravatar.com/avatar/80a2e10c9af40dd1716f9d50700c1a884581c3fd8ba0ebc5591f2e21874b37da?d=identicon)[niekBr](/maintainers/niekBr)

![](https://www.gravatar.com/avatar/f76642732142dc88f1f8740aab97d9389fc1419c85f448294e1bd0ee68777547?d=identicon)[ThijsLacquet](/maintainers/ThijsLacquet)

---

Top Contributors

[![ThijsLacquet](https://avatars.githubusercontent.com/u/28624985?v=4)](https://github.com/ThijsLacquet "ThijsLacquet (6 commits)")[![niekbr](https://avatars.githubusercontent.com/u/10487997?v=4)](https://github.com/niekbr "niekbr (4 commits)")

---

Tags

laraveletsvThortelegram-failed-job-monitor

### Embed Badge

![Health badge](/badges/etsvthor-telegram-failed-job-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/etsvthor-telegram-failed-job-monitor/health.svg)](https://phpackages.com/packages/etsvthor-telegram-failed-job-monitor)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)

PHPackages © 2026

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