rajador/discord-webhook

There is no license information available for the latest version (1.0.0) of this package.

Webhook lib to discord

Maintainers

Package info

github.com/RajadorDev/DiscordWebhook

pkg:composer/rajador/discord-webhook

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

1.0.0 2025-07-21 19:41 UTC

This package is auto-updated.

Last update: 2026-03-21 21:26:27 UTC


README

System created to send webhooks to Discord in an easy, fast, and intuitive way.

Instalation ⬇️

You can install using composer:

composer require rajador/discord-webhook

Code Example: 📝

To create a webhook, use:

$url = 'your_webhook_link';

$webhook = new WebHook($url);

$message = new DiscordMessage(
    'Here is the message content',
    'Username Here',
    null, // You can put an avatar URL here
    [
        (new Embed(
            'Embed Title',
            'Embed description',
            10, // Embed color
            'https://...', // Embed URL here
            new Author(
                'Embed Author Name',
                'https://...', // Author URL
                'https://...' // Author icon URL
            ),
            new Footer(
                'Footer text',
                'https://...' // Footer icon URL
            )
        ))->generateTimestamp() // Generates a timestamp
    ]
);
$webhook->send($message); // Message sent