laravel-discord-notifier maintained by yashveersingh
Author
Last update
2022/12/21 11:18
(dev-master)
Downloads
1 142
Laravel Discord Notifier
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.