PHPackages                             snoeren-development/laravel-discord-webhook-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. snoeren-development/laravel-discord-webhook-channel

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

snoeren-development/laravel-discord-webhook-channel
===================================================

Send notifications to a Discord webhook.

v1.12.2(6mo ago)1549.8k↓23.2%41MITPHPPHP ^8.2CI passing

Since Jan 11Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/snoeren-development/laravel-discord-webhook-channel)[ Packagist](https://packagist.org/packages/snoeren-development/laravel-discord-webhook-channel)[ Docs](https://github.com/snoeren-development/laravel-discord-webhook-channel)[ Fund](https://payment-links.mollie.com/payment/hitj25zNnTgBUdVMFpQeJ)[ RSS](/packages/snoeren-development-laravel-discord-webhook-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (38)Used By (1)

Laravel Discord Webhook Channel
===============================

[](#laravel-discord-webhook-channel)

[![Latest version on Packagist](https://camo.githubusercontent.com/148144fca995ff1395fbba3fabcbefffdc6f3ec0999f84405b2b618f105927e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736e6f6572656e2d646576656c6f706d656e742f6c61726176656c2d646973636f72642d776562686f6f6b2d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snoeren-development/laravel-discord-webhook-channel)[![Software License](https://camo.githubusercontent.com/67b88c74789d8f2a45f1f10b280995eb289c10782b3d6621f2f1395ad21d308d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736e6f6572656e2d646576656c6f706d656e742f6c61726176656c2d646973636f72642d776562686f6f6b2d6368616e6e656c3f7374796c653d666c61742d737175617265)](LICENSE)[![Build status](https://camo.githubusercontent.com/de62aa12559ea5b51d93b0245ee843be061a9c63219afceefa059b818442d7f2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736e6f6572656e2d646576656c6f706d656e742f6c61726176656c2d646973636f72642d776562686f6f6b2d6368616e6e656c2f7068702e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/snoeren-development/laravel-discord-webhook-channel/actions)[![Downloads](https://camo.githubusercontent.com/d05d3da249a59ffac6b2256c48e9e7e7ed1f9d00856806427d6bd8c42ee7d33a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736e6f6572656e2d646576656c6f706d656e742f6c61726176656c2d646973636f72642d776562686f6f6b2d6368616e6e656c3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snoeren-development/laravel-discord-webhook-channel)

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

[](#installation)

You can install the package using Composer:

```
composer require snoeren-development/laravel-discord-webhook-channel
```

### Requirements

[](#requirements)

This package requires at least PHP 8.2 and Laravel 10.

Usage
-----

[](#usage)

In every notifiable model you wish to notify via Discord, you need to add the `routeNotificationForDiscord` method;

```
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class User extends Model
{
    use Notifiable;

    /**
     * Route the notification for Discord.
     *
     * @return string
     */
    public function routeNotificationForDiscord(): string
    {
        return $this->discord_webhook;
    }
}
```

The webhook URL can be created and retrieved via the Discord channel server Webhooks settings. The notification needs the full URL which looks like

```
https://discordapp.com/api/webhooks/1234567890123456789/1Px6cK9-9346g0CbOYArYjr1jj6X9rvRcCpRi3s7HePN0POeCSvuF1Iagb-Wjiq78BnT

```

You may now send notifications through Laravel to Discord webhooks using the `via` method.

```
use SnoerenDevelopment\DiscordWebhook\DiscordMessage;
use SnoerenDevelopment\DiscordWebhook\DiscordWebhookChannel;

class DiscordNotification extends Notification
{
    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed $notifiable The notifiable model.
     * @return array
     */
    public function via($notifiable)
    {
        return [DiscordWebhookChannel::class];
    }

    /**
     * Get the Discord representation of the notification.
     *
     * @param  mixed $notifiable The notifiable model.
     * @return \SnoerenDevelopment\DiscordWebhook\DiscordMessage
     */
    public function toDiscord($notifiable): DiscordMessage
    {
        return DiscordMessage::create()
            ->username('My Laravel App')
            ->content('The message body.')
            ->avatar('https://domain.com/avatar.jpg')
            ->tts(false);
    }
}
```

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [Michael Snoeren](https://github.com/MSnoeren)
- [All Contributors](https://github.com/snoeren-development/laravel-discord-webhook-channel/graphs/contributors)

License
-------

[](#license)

The MIT license. See [LICENSE](LICENSE) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity39

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88% 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 ~64 days

Recently: every ~149 days

Total

34

Last Release

186d ago

PHP version history (7 changes)v1.0.0PHP ^7.2

v1.3.0PHP ^7.2|^8.0

v1.4.0PHP ^7.3|^8.0

v1.5.0PHP ^7.4|^8.0

v1.7.0PHP ^8.0

v1.9.0PHP ^8.1

v1.10.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![MSnoeren](https://avatars.githubusercontent.com/u/3404401?v=4)](https://github.com/MSnoeren "MSnoeren (88 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![freerkminnema](https://avatars.githubusercontent.com/u/41089591?v=4)](https://github.com/freerkminnema "freerkminnema (1 commits)")[![pschocke](https://avatars.githubusercontent.com/u/26882621?v=4)](https://github.com/pschocke "pschocke (1 commits)")[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (1 commits)")

---

Tags

discordlaravellaravel-packagenotifications-channelphplaravelnotificationdriverwebhookdiscordsnoeren

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/snoeren-development-laravel-discord-webhook-channel/health.svg)

```
[![Health](https://phpackages.com/badges/snoeren-development-laravel-discord-webhook-channel/health.svg)](https://phpackages.com/packages/snoeren-development-laravel-discord-webhook-channel)
```

###  Alternatives

[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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