leo-t/flarum-notify-push
Composer 安装命令:
composer require leo-t/flarum-notify-push
包简介
Push notifications to WeCom, DingTalk, ServerChan, Email and Webhook when forum events occur.
README 文档
README
A Flarum extension that pushes real-time notifications to external channels when forum events occur.
Features
- 5 Push Channels: WeCom (企业微信), DingTalk (钉钉), ServerChan (Server酱), Email, Generic Webhook
- 3 Event Types: User Registration, New Discussion, New Reply
- Multi-language Push: Choose push message language (English / 中文) in admin panel
- Dual Timezone: Display both Beijing time and a configurable local timezone
- Admin/Mod Filter: Optionally skip notifications for admin and moderator posts
- Markdown Formatting: Rich message formatting for channels that support Markdown
Requirements
- Flarum
^1.0.0 - PHP
^8.0
Installation
composer require leo-t/flarum-notify-push:*
Configuration
After installation, enable the extension in the Flarum admin panel, then configure:
General Settings
| Setting | Description |
|---|---|
| Push Message Language | en (English) or zh-hans (中文) |
| Local Timezone | IANA timezone name (e.g. America/New_York). Leave empty for Beijing time only |
| Skip Admin/Mod | When enabled, posts by admins and moderators won't trigger notifications |
WeCom (企业微信)
| Setting | Description |
|---|---|
| Enable | Toggle WeCom push on/off |
| Webhook URL | WeCom group robot webhook URL |
DingTalk (钉钉)
| Setting | Description |
|---|---|
| Enable | Toggle DingTalk push on/off |
| Webhook URL | DingTalk group robot webhook URL |
| Secret | Optional HMAC-SHA256 signing secret (starts with SEC) |
ServerChan (Server酱)
| Setting | Description |
|---|---|
| Enable | Toggle ServerChan push on/off |
| SendKey | Get from sct.ftqq.com |
| Setting | Description |
|---|---|
| Enable | Toggle email push on/off |
| Recipients | Comma-separated email addresses |
Email uses Flarum's built-in mail driver. Make sure your forum mail settings are configured correctly.
Generic Webhook
| Setting | Description |
|---|---|
| Enable | Toggle webhook push on/off |
| URL | Target endpoint URL |
| HTTP Method | POST or PUT |
| Custom Headers | One per line, format: Key: Value |
Webhook JSON payload format:
{
"title": "📝 New Discussion",
"body": "**Author:** username\n\n**Title:** ...",
"url": "https://your-forum.com/d/123",
"timestamp": "2026-02-16T11:00:00+08:00"
}
Push Message Examples
New User Registration
📢 New User Registered
Username: john_doe
Email: john@example.com
Registered At:
🕐 Beijing Time: 2026-02-16 11:00:00
🕐 Local Time: 2026-02-15 22:00:00
New Discussion
📝 New Discussion
Author: john_doe
Title: How to set up shipping?
Content: I'm trying to configure shipping rates for...
Posted At:
🕐 Beijing Time: 2026-02-16 11:05:00
🕐 Local Time: 2026-02-15 22:05:00
New Reply
💬 New Reply
Author: jane_smith
Topic: How to set up shipping?
Content: You can go to Settings > Shipping and...
Replied At:
🕐 Beijing Time: 2026-02-16 11:10:00
🕐 Local Time: 2026-02-15 22:10:00
Updating
composer update leo-t/flarum-notify-push php flarum cache:clear
Uninstall
composer remove leo-t/flarum-notify-push php flarum cache:clear
License
MIT
Author
Leo (Leo.lty0511@gmail.com)
leo-t/flarum-notify-push 适用场景与选型建议
leo-t/flarum-notify-push 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 48 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「notification」 「push」 「webhook」 「flarum」 「dingtalk」 「WeCom」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 leo-t/flarum-notify-push 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 leo-t/flarum-notify-push 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 leo-t/flarum-notify-push 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package makes it easy to send notifications via AfricasTalking with Laravel
Apple Push Notification & Feedback Provider
Throttle notifications on a per-channel basis
Inbox pattern process implementation for your Laravel Applications
Laravel package to send push notifications to mobile devices (apns, gcm)
Extensible library for building notifications and sending them via different delivery channels.
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-16