rajador/discord-webhook
最新稳定版本:1.0.0
Composer 安装命令:
composer require rajador/discord-webhook
包简介
Webhook lib to discord
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-07-17