PHPackages                             nhamtphat/laravel-backup-telegram-notifications - 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. nhamtphat/laravel-backup-telegram-notifications

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

nhamtphat/laravel-backup-telegram-notifications
===============================================

Telegram notifications for spatie/laravel-backup

v1.2.0(1mo ago)032MITPHPPHP &gt;=8.2

Since Feb 13Pushed 1mo agoCompare

[ Source](https://github.com/nhamtphat/laravel-backup-telegram-notifications)[ Packagist](https://packagist.org/packages/nhamtphat/laravel-backup-telegram-notifications)[ RSS](/packages/nhamtphat-laravel-backup-telegram-notifications/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (5)Used By (0)

Laravel Backup Telegram Notifications
=====================================

[](#laravel-backup-telegram-notifications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2effbd73fec3f299fcd0d4623c840b3c6a71c40907ff069104e7354e78c9b064/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e68616d74706861742f6c61726176656c2d6261636b75702d74656c656772616d2d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nhamtphat/laravel-backup-telegram-notifications)[![Total Downloads](https://camo.githubusercontent.com/60e599b8c457d94962aa945cd8316ab2f01538e4057c1a994ae99a81f1fda23e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e68616d74706861742f6c61726176656c2d6261636b75702d74656c656772616d2d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nhamtphat/laravel-backup-telegram-notifications)[![License](https://camo.githubusercontent.com/cc865093b8a05c1dcd7b870f7150cb00f9a2091892d70b5d30eb5d63cf501dac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e68616d74706861742f6c61726176656c2d6261636b75702d74656c656772616d2d6e6f74696669636174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://github.com/nhamtphat/laravel-backup-telegram-notifications/blob/master/LICENSE.md)

A wrapper for [spatie/laravel-backup](https://github.com/spatie/laravel-backup) to send beautified Telegram notifications. This package is a fork of [hotrush/laravel-backup-telegram-notifications](https://github.com/hotrush/laravel-backup-telegram-notifications).

✨ Features
----------

[](#-features)

- **Beautified Notifications**: Rich HTML-formatted Telegram messages with emojis and clear structure.
- **Easy Integration**: Seamlessly works with the existing Spatie Backup notification system.
- **Customizable**: Uses Blade views for notification templates, allowing for easy customization.

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require nhamtphat/laravel-backup-telegram-notifications
```

⚙️ Configuration
----------------

[](#️-configuration)

### 1. Configure Backup Notifications

[](#1-configure-backup-notifications)

In your `config/backup.php` file, update the `notifications` section to use the Telegram channel and this package's notification classes.

```
// config/backup.php

use NotificationChannels\Telegram\TelegramChannel;
use NhamtPhat\SpatieBackup\Notifications\Notifiable;
use NhamtPhat\SpatieBackup\Notifications\Notifications\BackupHasFailedNotification;
use NhamtPhat\SpatieBackup\Notifications\Notifications\BackupWasSuccessfulNotification;
use NhamtPhat\SpatieBackup\Notifications\Notifications\CleanupHasFailedNotification;
use NhamtPhat\SpatieBackup\Notifications\Notifications\CleanupWasSuccessfulNotification;
use NhamtPhat\SpatieBackup\Notifications\Notifications\HealthyBackupWasFoundNotification;
use NhamtPhat\SpatieBackup\Notifications\Notifications\UnhealthyBackupWasFoundNotification;

'notifications' => [
    'notifications' => [
        BackupHasFailedNotification::class => [TelegramChannel::class],
        UnhealthyBackupWasFoundNotification::class => [TelegramChannel::class],
        CleanupHasFailedNotification::class => [TelegramChannel::class],
        BackupWasSuccessfulNotification::class => [TelegramChannel::class],
        HealthyBackupWasFoundNotification::class => [TelegramChannel::class],
        CleanupWasSuccessfulNotification::class => [TelegramChannel::class],
    ],

    'notifiable' => Notifiable::class,

    'telegram' => [
        'channel_id' => env('TELEGRAM_BACKUP_CHAT_ID', env('TELEGRAM_CHAT_ID')),
    ],
],
```

Alternatively, you can publish the package config file:

```
php artisan vendor:publish --tag="laravel-backup-telegram-config"
```

This will create a `config/backup-telegram.php` file where you can manage your Telegram settings. The package will automatically use these values as fallbacks if they are not defined in `config/backup.php`.

Don't forget to add `TELEGRAM_BACKUP_BOT_TOKEN` (or `TELEGRAM_BOT_TOKEN`) and `TELEGRAM_BACKUP_CHAT_ID` (or `TELEGRAM_CHAT_ID`) to your `.env` file.

🛠 Usage
-------

[](#-usage)

Once configured, notifications will be sent automatically by the `spatie/laravel-backup` package whenever a backup event occurs.

📄 License
---------

[](#-license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.1% 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 ~30 days

Total

4

Last Release

49d ago

### Community

Maintainers

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

---

Top Contributors

[![hotrush](https://avatars.githubusercontent.com/u/1247004?v=4)](https://github.com/hotrush "hotrush (23 commits)")[![nhamtphat](https://avatars.githubusercontent.com/u/20165130?v=4)](https://github.com/nhamtphat "nhamtphat (4 commits)")[![daikazu](https://avatars.githubusercontent.com/u/4039367?v=4)](https://github.com/daikazu "daikazu (1 commits)")

### Embed Badge

![Health badge](/badges/nhamtphat-laravel-backup-telegram-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/nhamtphat-laravel-backup-telegram-notifications/health.svg)](https://phpackages.com/packages/nhamtphat-laravel-backup-telegram-notifications)
```

###  Alternatives

[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

213421.0k2](/packages/wnx-laravel-backup-restore)[nasirkhan/module-manager

Module Manager &amp; Generator for Laravel Starter Kit (https://github.com/nasirkhan/laravel-starter)

1044.6k5](/packages/nasirkhan-module-manager)[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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