承接 rajador/discord-webhook 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-07-17