PHPackages                             uzinfo/ntfy-laravel - 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. uzinfo/ntfy-laravel

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

uzinfo/ntfy-laravel
===================

Laravel broadcaster implementation for ntfy.sh notification service

v1.0.0(1y ago)10MITPHPPHP ^8.1CI failing

Since Jul 7Pushed 1y agoCompare

[ Source](https://github.com/abdu11aev-samandar/ntfy-laravel)[ Packagist](https://packagist.org/packages/uzinfo/ntfy-laravel)[ RSS](/packages/uzinfo-ntfy-laravel/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

Ntfy Laravel Package
====================

[](#ntfy-laravel-package)

[![Latest Stable Version](https://camo.githubusercontent.com/3129d50627408dd4216f3130ca863c833a88b931e490c6f11729ac8616403de6/68747470733a2f2f706f7365722e707567782e6f72672f757a696e666f2f6e7466792d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/uzinfo/ntfy-laravel)[![Total Downloads](https://camo.githubusercontent.com/f193f8454845bb841d01590c628008c098e5245a44c5c5399ae2ee2b8e2e4a72/68747470733a2f2f706f7365722e707567782e6f72672f757a696e666f2f6e7466792d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/uzinfo/ntfy-laravel)[![License](https://camo.githubusercontent.com/ac1e5f9a4889cd8f478507bc13307a6c90ef70495daaea7598179ee84af5dab7/68747470733a2f2f706f7365722e707567782e6f72672f757a696e666f2f6e7466792d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/uzinfo/ntfy-laravel)[![PHP Version Require](https://camo.githubusercontent.com/53f417f2da0bd9cdd9754863f734bd75e6eff405e355e0c61f20c7fd3789ee14/68747470733a2f2f706f7365722e707567782e6f72672f757a696e666f2f6e7466792d6c61726176656c2f726571756972652f706870)](https://packagist.org/packages/uzinfo/ntfy-laravel)

Laravel package for integrating with [ntfy.sh](https://ntfy.sh) notification service. This package provides a broadcaster implementation for Laravel Broadcasting and a notification channel for Laravel Notifications.

Features
--------

[](#features)

- Laravel Broadcasting driver for ntfy
- Laravel Notification channel for ntfy
- Support for all ntfy features (priority, tags, attachments, actions, etc.)
- Multiple authentication methods (Bearer, Basic, Digest, API Key)
- Configurable SSL verification
- Rate limiting support
- Helper methods for common use cases

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

[](#installation)

Install the package via Composer:

```
composer require uzinfo/ntfy-laravel
```

The service provider will be automatically registered.

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

[](#configuration)

### Environment Variables

[](#environment-variables)

Add the following variables to your `.env` file:

```
# Basic ntfy configuration
NTFY_BASE_URL=https://ntfy.sh
NTFY_TOKEN=your-token-here
NTFY_KEY=your-key-here
NTFY_AUTH=bearer
NTFY_VERIFY=true

# For broadcasting
BROADCAST_DRIVER=ntfy
```

### Publishing Configuration

[](#publishing-configuration)

Publish the configuration files:

```
# Publish ntfy configuration
php artisan vendor:publish --tag=ntfy-config

# Publish broadcasting configuration (optional)
php artisan vendor:publish --tag=ntfy-broadcasting
```

Usage
-----

[](#usage)

### Broadcasting Events

[](#broadcasting-events)

Create a broadcastable event:

```
