PHPackages                             lucasformiga/discord-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. lucasformiga/discord-notification-channel

ActiveLibrary

lucasformiga/discord-notification-channel
=========================================

Discord Notification Channel for Laravel.

02PHP

Since Mar 5Pushed 6y agoCompare

[ Source](https://github.com/LucasFormiga/discord-notification-channel)[ Packagist](https://packagist.org/packages/lucasformiga/discord-notification-channel)[ RSS](/packages/lucasformiga-discord-notification-channel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Discord Notification Channel
====================================

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

[![Total Downloads](https://camo.githubusercontent.com/1c68c0918e51bfade1ad145cc2901f21826e3c5e0bae53036acadbd0db087dbb/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173666f726d6967612f646973636f72642d6e6f74696669636174696f6e2d6368616e6e656c2f642f746f74616c2e737667)](https://packagist.org/packages/lucasformiga/discord-notification-channel)[![Latest Stable Version](https://camo.githubusercontent.com/3a9725781fdf6d147fd27a4e6302599761deb6a698ad39a181ae545309903f74/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173666f726d6967612f646973636f72642d6e6f74696669636174696f6e2d6368616e6e656c2f762f737461626c652e737667)](https://packagist.org/packages/lucasformiga/discord-notification-channel)[![License](https://camo.githubusercontent.com/2c0c69eab37f93d49c9e860f057769c858820c0dd1a77d99671d8cc5f79635b6/68747470733a2f2f706f7365722e707567782e6f72672f6c75636173666f726d6967612f646973636f72642d6e6f74696669636174696f6e2d6368616e6e656c2f6c6963656e73652e737667)](https://packagist.org/packages/lucasformiga/discord-notification-channel)

Summary
-------

[](#summary)

- [Installation](#installation)
    - [Setting up the Connector](#setting-up-the-connector)
- [Usage](#usage)
    - [Available Methods](#available-methods)
    - [Available Colors](#available-colors)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

You can install this package using composer:

```
composer require lucasformiga/discord-notification-channel
```

After the package installation you will need your channel's webhook URL. [This article will help you](https://support.discordapp.com/hc/pt-br/articles/228383668-Usando-Webhooks) to setup and add a webhook connector to your Discord's channel.

### Setting up the Connector

[](#setting-up-the-connector)

```
// config/services.php
'discord' => [
    'notification_webhook' => env('DISCORD_NOTIFICATION_WEBHOOK')
],
```

Also, you will need to add `DISCORD_NOTIFICATION_WEBHOOK` on your .env file along with your webhook url previously generated. Make sure your .env.example is synced with your .env variables.

Usage
-----

[](#usage)

You can now use this package as a notification channel on your Notification, just change the return value to `['discord']` on via() method.

### Available Methods

[](#available-methods)

- `content()`: The content method will receive a string and add a text to your message.
- `name()`: The name method will receive a string and change the username of your message.
- `avatar()`: The avatar method will receive a URL as string and change the user avatar of your message.
- `isTts()`: You can also send a Text To Speech message!
- `card()`: This method will receive two required string as params, the first param will be the card title while the second param will be the card content. The other three params will be a color, author and footer. (If you would like to add a author and footer, follow this guide: [Embed Author Structure](https://discordapp.com/developers/docs/resources/channel#embed-object-embed-author-structure) [Embed Footer Structure](https://discordapp.com/developers/docs/resources/channel#embed-object-embed-footer-structure)). You will only be able to add 10 cards (info, success, warning and danger cards also included).
- `info()`: This method will receive two required string as params, the first param will be the card title while the second param will be the card content. The other two params will be a author and footer.
- `success()`: This method will receive two required string as params, the first param will be the card title while the second param will be the card content. The other two params will be a author and footer.
- `warning()`: This method will receive two required string as params, the first param will be the card title while the second param will be the card content. The other two params will be a author and footer.
- `danger()`: This method will receive two required string as params, the first param will be the card title while the second param will be the card content. The other two params will be a author and footer.

### Available Colors

[](#available-colors)

- AQUA
- GREEN
- BLUE
- PURPLE
- GOLD
- ORANGE
- RED
- GREY
- DARKER\_GREY
- NAVY
- DARK\_AQUA
- DARK\_GREEN
- DARK\_BLUE
- DARK\_PURPLE
- DARK\_GOLD
- DARK\_ORANGE
- DARK\_RED
- DARK\_GREY
- LIGHT\_GREY
- DARK\_NAVY
- LUMINOUS\_VIVID\_PINK
- DARK\_VIVID\_PINK

Just use DiscordMessage::COLOR with your card method.

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

[](#contributing)

- [Lucas Formiga](https://github.com/lucasformiga)

License
-------

[](#license)

Discord Notification Channel is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/21da70a976b9ed6b29386b533025bfdbec5c744ddb53aea5650afba9ee65f233?d=identicon)[LucasFormiga](/maintainers/LucasFormiga)

---

Top Contributors

[![LucasFormiga](https://avatars.githubusercontent.com/u/5132668?v=4)](https://github.com/LucasFormiga "LucasFormiga (11 commits)")

### Embed Badge

![Health badge](/badges/lucasformiga-discord-notification-channel/health.svg)

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

PHPackages © 2026

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