yashveersingh / laravel-discord-notifier
There is no license information available for the latest version (v1.01) of this package.
v1.01
2022-12-21 09:16 UTC
Requires
- guzzlehttp/guzzle: ^6.3.1|^7.0.1
This package is auto-updated.
Last update: 2024-12-21 14:32:42 UTC
README
This package makes it easy to send notifications using the Discord webhook API with Laravel.
Installation
You can install the package via composer:
composer require yashveersingh/laravel-discord-notifier
Setting up your Discord bot
- Add
DISCORD_WEBHOOK=https://discord.com/api/webhooks/...
in.env
Usage
use yashveersingh\laravelDiscordNotifier\DiscordNotifier; $message = 'Hello From Webhook'; $discordNotifier = new DiscordNotifier(); $discordNotifier->setUserName('USERNAME'); $discordNotifier->send($message);
License
The MIT License (MIT). Please see LICENSE for more information.