Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Discord Webhook Channel

Laravel Discord Webhook Channel Laravel Package

snoeren-development/laravel-discord-webhook-channel

A Laravel notification channel for sending messages to Discord through webhooks. Configure a Discord webhook URL, add the channel to your notifications, and deliver formatted messages to your server with minimal setup.

View on GitHub
Deep Wiki
Context7

Send notifications to a Discord webhook.

Frequently asked questions about Laravel Discord Webhook Channel
How do I install and configure the Laravel Discord webhook channel?
Install it with composer require snoeren-development/laravel-discord-webhook-channel, then optionally publish its config. Store the Discord webhook URL in an environment variable or secret manager and add the channel to your notification's via() method. Build the message in the notification's toDiscord() method using the package's message builder.
Which Laravel and PHP versions does this Discord notification channel support?
The package is intended for Laravel applications, and the assessment positions it for Laravel 10, 11, or 12 on PHP 8.1+ where Composer constraints allow. The provided material does not include the authoritative version matrix or CI results, so verify composer.json before committing. Resolve it in a branch against your pinned Laravel and PHP versions.
Do I need a Discord bot or OAuth to send notifications with this package?
No Discord bot, OAuth flow, or inbound listener is required. The channel posts to a Discord webhook URL over outbound HTTPS using Laravel's HTTP client and queue. That makes it stateless and close to ideal for one-way operational alerts.
How do I send a Discord notification from a Laravel application?
Create a notification class, add the Discord channel to its via() method, and implement toDiscord() to return a formatted message. Use Laravel's Notifiable trait and call notify() on a model or Notification::send() as usual. If the notification implements ShouldQueue, delivery runs on your existing queue worker.
Does this package handle Discord rate limits and 429 retry_after responses?
The provided assessment does not confirm explicit handling of Discord 429 responses or retry_after semantics. It notes that rate-limit behavior may be left to Laravel's queue and HTTP client, or surfaced raw. Verify this in the package source before relying on it for high-volume alerts, and queue the notification with retries.
Is this single-maintainer Discord webhook package safe for production use?
Technically the risk is low because it is a thin outbound webhook adapter with no new infrastructure. The bigger concern is adoption and longevity: the package has 14 stars and effectively a single maintainer. Treat the 9.42 score as a heuristic, pin the version, and keep an internal wrapper so you can swap implementations.
How does it compare to laravel-notification-channels/discord?
laravel-notification-channels/discord has materially higher adoption, while this package is a minimal webhook-focused channel. The provided material does not show a feature that clearly beats the incumbent, so compare supported Laravel versions, payload features, and maintenance activity. Wrapping message construction behind your own contract makes either choice reversible.
Should I queue Discord notifications in Laravel?
Yes. Laravel notifications that implement ShouldQueue are queued, so the Discord channel inherits your existing queue, retry, and observability setup. Queueing is recommended because delivery is an outbound HTTPS call to Discord. The package does not add a separate worker or runtime component.
Does it support Discord threads, components, message editing, and embeds?
The assessment indicates it is suited to fire-and-forget content and embeds, but it does not confirm support for threads, components, or message editing. Discord webhook payloads evolve, so a low-traffic package may lag API changes. Check the source for the exact builder features and whether the API version is pinned.
How can I test this Discord channel and avoid vendor lock-in?
Use Notification::fake() to assert the notification was sent and Http::fake() to inspect the outgoing webhook payload in tests. For longevity, define an internal DiscordAlert contract or wrapper service and call it from notifications instead of using the vendor message builder everywhere. That keeps a future channel swap contained rather than a codebase-wide refactor.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core