PHPackages                             mehrancodes/laravel-discord-notifier - 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. mehrancodes/laravel-discord-notifier

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

mehrancodes/laravel-discord-notifier
====================================

Send Discord messages through webhook with Discord

1.0.0(5y ago)35.8k↓50%MITPHP

Since Mar 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mehrancodes/laravel-discord-notification)[ Packagist](https://packagist.org/packages/mehrancodes/laravel-discord-notifier)[ Docs](https://github.com/mehranrasuli/laravel-discord-notifier)[ RSS](/packages/mehrancodes-laravel-discord-notifier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Discord Server Channel Notifier for Laravel 6.0+
================================================

[](#discord-server-channel-notifier-for-laravel-60)

[![Latest Stable Version](https://camo.githubusercontent.com/e44e8628c6cd2056ee35d8d59366d32127238569d1866a0b356484815b6949b5/68747470733a2f2f706f7365722e707567782e6f72672f6d656872616e636f6465732f6c61726176656c2d646973636f72642d6e6f7469666965722f76)](//packagist.org/packages/mehrancodes/laravel-discord-notifier)[![Total Downloads](https://camo.githubusercontent.com/7e6004b5a45b9330ab4bf06d4d754aa8f99e4fd0af7df2150415b1162505178d/68747470733a2f2f706f7365722e707567782e6f72672f6d656872616e636f6465732f6c61726176656c2d646973636f72642d6e6f7469666965722f646f776e6c6f616473)](//packagist.org/packages/mehrancodes/laravel-discord-notifier)[![License](https://camo.githubusercontent.com/cc318aea688e7c69fc2267653e2d1d02cba1ae65ec688e16ab4671b05cab6413/68747470733a2f2f706f7365722e707567782e6f72672f6d656872616e636f6465732f6c61726176656c2d646973636f72642d6e6f7469666965722f6c6963656e7365)](//packagist.org/packages/mehrancodes/laravel-discord-notifier)[![StyleCI](https://camo.githubusercontent.com/d88b9a4f6b299543617c2fda78b7e98fa02d3bfc5b6bd25105c619ce1d4319f7/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3334343833323339322f736869656c64)](https://github.styleci.io/repos/344832392)

Send Discord public messages through webhook directly to the Discord server channels. This works by sending a post request with some JSON data to a unique URL Discord provides when you create your Webhook. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

You can install the package via composer:

```
$ composer require mehrancodes/laravel-discord-notifier
```

Next you need to publish the package config to add your Discord Webhook URLs.

```
$ php artisan vendor:publish --tag=discord-notifier-config
```

### Setting up your Discord Webhook

[](#setting-up-your-discord-webhook)

Discord provides a feature to create Webhooks, but note that it is only available in server channels, not in direct messages. To create a Webhook, click the cog next to the channel in which you wish to set up your Webhook:

[![discord-edit-channel-cog.png](images/discord-edit-channel-cog.png)](images/discord-edit-channel-cog.png)

Then head to the Webhooks tab, and hit Create Webhook. You'll then be able to specify the name, which is the name that is used when sending messages if none is specifided in the JSON post request. You can also adjust the channel, and add a default image. Again, that image can later be customized from the JSON post request.

Then at the bottom, you'll get the unique Webhook URL. Paste it in your discord-notifier.php config file.

```
// config/discord-notifier.php
'channels' => [
    'capitan_hook' => [
        'webhook' => 'https://discord.com/api/webhooks/YOUR_CHANNEL_UNIQUE_IDENTIFIER',
    ],
    // You can add as many Discord channels as you like to this array...
]
```

Usage
-----

[](#usage)

In your logic where you want to send a message to a server channel, you may use the Discord facade to define the channel name you want to receive the notification message, the content message, and send it.

```
use MehranCodes\Notifier\Facades\Discord;

Discord::body("The Mehran's new online meeting has ended up successfully")
    ->embeds([
        'title' => 'View Meeting Details On Nova Panel',
        'url' => url('nova/resources/meetings/1'),
    ])
    ->send();
```

You can use the [embeds](https://discord.com/developers/docs/resources/channel#embed-object) method to pass an array of embeded rich content.

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mehran Rasulian](https://github.com/mehrancodes)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/063a00301f7f963fba38109647a88745d32c29bcbbd821fe530e89638f37c63d?d=identicon)[mehrancodes](/maintainers/mehrancodes)

---

Top Contributors

[![mehrancodes](https://avatars.githubusercontent.com/u/7046255?v=4)](https://github.com/mehrancodes "mehrancodes (1 commits)")

---

Tags

laravelnotifierdiscord

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mehrancodes-laravel-discord-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/mehrancodes-laravel-discord-notifier/health.svg)](https://phpackages.com/packages/mehrancodes-laravel-discord-notifier)
```

###  Alternatives

[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[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)[therobfonz/laravel-mandrill-driver

Mandrill Driver for Laravel

773.5M](/packages/therobfonz-laravel-mandrill-driver)[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)
