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.13.1(3mo ago)1554.1k↓52.1%41MITPHPPHP ^8.3CI passing

Since Jan 11Pushed 1w 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)[ GitHub Sponsors](https://github.com/snoeren-development)[ RSS](/packages/snoeren-development-laravel-discord-webhook-channel/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (46)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.3 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

62

—

FairBetter than 99% of packages

Maintenance91

Actively maintained with recent releases

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 84.2% 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 ~91 days

Total

36

Last Release

95d ago

PHP version history (8 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

v1.13.1PHP ^8.3

### 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 (101 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M17](/packages/laravel-notification-channels-discord)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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