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

This package is auto-updated.

Last update: 2024-06-21 13:31:42 UTC


README

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.