libs / discord-message
Send discord webhook
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/libs/discord-message
Requires
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^10.2
This package is auto-updated.
Last update: 2025-10-08 22:28:51 UTC
README
send discord webhook
Usage
Send Embed :
<?php $webhook = new \discordMessage\Webhook(<url>); $message = $webhook->getMessage(); $embed = $message->getEmbed(); /** * You can set the embed title, description, color, footer, image, thumbnail, author, fields */ $message->addEmbed($embed); $webhook->send($message);
Send Simple :
<?php $webhook = new \discordMessage\Webhook(<url>); $message = $webhook->getMessage(); $message->setContent(<content>); $webhook->send($message);