Download the PHP package ccoeder/discord-webhook without Composer
On this page you can find all versions of the php package ccoeder/discord-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ccoeder/discord-webhook
More information about ccoeder/discord-webhook
Files in ccoeder/discord-webhook
Package discord-webhook
Short Description Discord Webhook notifications channel for Laravel 5.8
License MIT
Homepage https://github.com/ccoeder/discord-webhook
Informations about the package discord-webhook
Discord Webhook notifications channel for Laravel 5.3 ~ 5.8
This package makes it easy to send notifications using Discord Webhook with Laravel 5.3.
This is a fork from siemenrotensen/discord-webhook because I need to use with on-demand notifications so I added support for that.
Contents
- Setting up the Discord Webhook service
- Usage
- Routing a message
- Send a message with embeds
- Available Embed methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up your Discord Webhook
Follow the official guide Using Webhook to set up your Discord Webhook.
Usage
Now you can use the channel in your via()
method inside the notification:
Routing a message
In order to let your Notification know which Webhook (Discord Channel) you are targeting, add the routeNotificationForDiscordWebhook
method to your Notifiable model:
Add ?wait=true
to your Webhook URL, to receive the sent message:
Send a message with embeds
Discord Webhook allows you to add embedded rich content to your message:
Send a message with file upload
Discord Webhook allows you to upload a file with your message:
Available Message methods
content($text)
: The message contents (up to 2000 characters).from($username[, $avatar_url])
: Override the default username and avatar (optional) of the webhook.-(Does currently not work for Webhooks)tts()
: Send as a TTS message.file($content, $filename)
: The contents of the file being sent. NOTE: Does not work with embedded rich contentembed($callback)
: Define (up to 10) embedded rich content for the message. (see Embeds)
Available Embed methods
title($title[, $url])
: Set the title of embed.description($text)
: Set the description of embed.color($color_int)
: Set the color code of the embed.footer($text[, $icon_url])
: Set the footer information.image($img_url)
: Set the image information.thumbnail($img_url)
: Set the thumbnail information.author($name[, $url, $icon_url])
: Set the author information.field($name, $value[, $inline_bool])
: Set the (inline) fields information.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Dr. Dr. Jojo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of discord-webhook with dependencies
guzzlehttp/guzzle Version ^6.3
illuminate/notifications Version 5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*