labymod/discord-webhook
最新稳定版本:3.1.3
Composer 安装命令:
composer require labymod/discord-webhook
包简介
A lightweight library for Discord™ Webhooks
README 文档
README
Send Discord messages directly from your PHP application. Even with embeds & files!
Versions & Compatibility
| Release | Supported PHP Versions | Supported Symfony Versions | Release Date | Maintained | Branch |
|---|---|---|---|---|---|
| 3.x | ^8.1 |
^4.4.35, ^5.3.12, ^6.0 |
23.01.2022 | Yes | master |
| 2.x | ^8.0 |
^4.4.35, ^5.3.12, ^6.0 |
23.01.2022 | Yes | 2.x |
| 1.x | ^7.3, ^8.0 |
^3.0, ^4.0, ^5.0 |
05.01.2020 | No | 1.x |
Installation
Composer installation
composer require labymod/discord-webhook
Documentation
Hop into the wonderful world of webhooks with just those few lines:
use DiscordWebhook\Webhook; $wh = new Webhook('https://my.webhook/url'); $wh ->setMessage('Hello world!') ->send();
✨ NEW: Simple Webhooks
First (recommended but optional): Define the
DWH_DEFAULT_URLas environment variable
use DiscordWebhook\SimpleWebhook; // with environment variable defined: SimpleWebhook::sendMessage('My simple message.'); // without environment variable defined (or to override the already set env var): SimpleWebhook::sendMessage('My simple message.', 'https://discord.com/my/webhook/url');
For further documentation have a look here:
统计信息
- 总下载量: 18.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-11-26