labymod/discord-webhook
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:
labymod/discord-webhook 适用场景与选型建议
labymod/discord-webhook 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20.08k 次下载、GitHub Stars 达 11, 最近一次更新时间为 2018 年 11 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 labymod/discord-webhook 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 labymod/discord-webhook 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 20.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 22
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-11-26