Looking to hire Laravel developers? Try LaraJobs

laravel-discord-notifier maintained by yashveersingh

Last update
2022/12/21 11:18 (dev-master)
Links
Downloads
1 142

Comments
comments powered by Disqus

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.