PHPackages                             wijourdil/ntfy-notification-channel - 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. wijourdil/ntfy-notification-channel

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

wijourdil/ntfy-notification-channel
===================================

ntfy.sh Notification Channel for Laravel

5.0.0(1mo ago)229.4k↓44.2%2[1 PRs](https://github.com/wijourdil/ntfy-notification-channel/pulls)MITPHPPHP ^8.3CI passing

Since Oct 28Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/wijourdil/ntfy-notification-channel)[ Packagist](https://packagist.org/packages/wijourdil/ntfy-notification-channel)[ Docs](https://github.com/wijourdil/ntfy-notification-channel)[ RSS](/packages/wijourdil-ntfy-notification-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (28)Versions (14)Used By (0)

ntfy.sh Notification Channel for Laravel
========================================

[](#ntfysh-notification-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/99755b59e192b69933aba9244673b0d37541b5088c33c9392a0b7e22519da653/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77696a6f757264696c2f6e7466792d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://packagist.org/packages/wijourdil/ntfy-notification-channel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/90ff47773cdb98c3b224f883e6abba076ccd7abd1c7a5b05a623cf2094bd855f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77696a6f757264696c2f6e7466792d6e6f74696669636174696f6e2d6368616e6e656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/wijourdil/ntfy-notification-channel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1262089f626be2e3257b10ce930847b294a6952b57c839a32d513872a7db20c3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77696a6f757264696c2f6e7466792d6e6f74696669636174696f6e2d6368616e6e656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6c6162656c3d636f64652532307374796c65266272616e63683d6d61696e)](https://github.com/wijourdil/ntfy-notification-channel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8444bd9bd44ad54cd98bb33ac414d6bfa6fc5e6863d7fd4f582b9c191e298475/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77696a6f757264696c2f6e7466792d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://packagist.org/packages/wijourdil/ntfy-notification-channel)

This package adds a Laravel Notification Channel to sent messages via [ntfy](https://ntfy.sh). It's build on top of the [verifiedjoseph/ntfy-php-library](https://github.com/VerifiedJoseph/ntfy-php-library) package.

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

[](#installation)

Install the package via composer:

```
composer require wijourdil/ntfy-notification-channel
```

Publish the config file with:

```
php artisan vendor:publish --tag="ntfy-notification-channel-config"
```

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

[](#configuration)

If you are using the online version , you don't need to configure the server base url. But if you are using a self-hosted version of ntfy, you can configure it in your `.env` file:

```
NTFY_SERVER=https://ntfy.example.com
```

By default, authentication is disabled. If you want to connect using credentials, you can also configure it within you `.env` file:

```
NTFY_AUTH_ENABLED=true
NTFY_AUTH_USERNAME=michel
NTFY_AUTH_PASSWORD=m0tDeP4ss3
```

To see default values and other settings, see the `config/ntfy-notification-channel.php` config file.

Usage
-----

[](#usage)

In your Notification class, tell Laravel to send your notification via [ntfy](https://ntfy.sh)by returning the `NtfyChannel::class` in the `via()` method:

```
use Wijourdil\NtfyNotificationChannel\Channels\NtfyChannel;

public function via($notifiable)
{
    return [NtfyChannel::class];
}
```

Then, define a `toNtfy()` method in your Notification:

```
use Ntfy\Message;

public function toNtfy(mixed $notifiable): Message
{
    $message = new Message();
    $message->topic('test');
    $message->title('It works!');
    $message->body("And voila, I sent my notification using ntfy.sh!");
    $message->tags(['white_check_mark', 'ok_hand']);

    return $message;
}
```

Here is what the notification looks like using [the ntfy mobile app](https://ntfy.sh/docs/subscribe/phone/):

[![Notification example with ntfy app](notification.png)](notification.png)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Wilfried Jourdil](https://github.com/wijourdil)

License
-------

[](#license)

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

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 50.9% 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 ~113 days

Recently: every ~265 days

Total

12

Last Release

56d ago

Major Versions

1.1.0 → 2.0.02023-02-15

2.0.1 → 3.0.02024-04-17

3.0.0 → 4.0.02025-05-14

4.1.0 → 5.0.02026-03-24

PHP version history (3 changes)1.0.0PHP ^8.1

3.0.0PHP ^8.2

5.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/922848e6470743d471d0a49f306bb92896f978a6a755d83cc201df89f49e81c4?d=identicon)[wijourdil](/maintainers/wijourdil)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (29 commits)")[![wijourdil](https://avatars.githubusercontent.com/u/12596207?v=4)](https://github.com/wijourdil "wijourdil (22 commits)")[![gitmoji-changelog-bot](https://avatars.githubusercontent.com/u/114694492?v=4)](https://github.com/gitmoji-changelog-bot "gitmoji-changelog-bot (6 commits)")

---

Tags

channellaravelnotificationnotificationsntfyntfy-shntfyshpackagelaravelnotificationntfy.shwijourdilntfy-notification-channel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/wijourdil-ntfy-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/wijourdil-ntfy-notification-channel/health.svg)](https://phpackages.com/packages/wijourdil-ntfy-notification-channel)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[wnx/laravel-sends

Keep track of outgoing emails in your Laravel application.

200427.3k](/packages/wnx-laravel-sends)

PHPackages © 2026

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