ronald2wing/module-forum
Composer 安装命令:
composer require ronald2wing/module-forum
包简介
Magento 2 forum extension with hierarchical forums, topics, posts, moderation queue, post reporting, email notifications, GraphQL and REST API
README 文档
README
Full-featured forum system for Magento 2 — forums, topics, posts, moderation, reporting, GraphQL, and REST API.
Features
- Forum hierarchy: Forums → Topics → Posts
- SEO-friendly URLs: custom router with clean keys
- Moderation queue: non-moderator posts set to pending, admin approve/reject
- Post reporting: users flag posts, admin reviews
- Customer profiles: nickname, avatar, signature
- Email notifications: topic subscriptions with secure unsubscribe
- Visitor tracking: "Who's online" per forum and topic
- Bookmarks, RSS feeds, search, customer group access
- REST API: 14 endpoints
- GraphQL: 6 queries with resolver-processed relation fields
Requirements
- PHP 8.1+
- Magento 2.4.6+
- MySQL / MariaDB
Install
composer require ronald2wing/module-forum bin/magento module:enable Ronald2Wing_Forum bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:clean
Configuration
Stores → Configuration → Ronald2Wing Extensions → Magento Forum
| Setting | Default |
|---|---|
| Enable Forum | Yes |
| Forum Route | forum |
| Enable Search | Yes |
| Enable Bookmarks | Yes |
| Enable RSS | Yes |
| Enable Statistics | Yes |
| Who's Online | Yes |
| Page Layout | 1 column |
| Notification Email | owner@example.com |
REST API
| Method | Endpoint | Access |
|---|---|---|
| GET | /V1/forums |
Anonymous |
| GET | /V1/forums/:forumId |
Anonymous |
| POST | /V1/forums |
Admin |
| DELETE | /V1/forums/:forumId |
Admin |
| GET | /V1/forums/:forumId/topics |
Anonymous |
| GET | /V1/topics/:topicId |
Anonymous |
| POST | /V1/topics |
Customer |
| DELETE | /V1/topics/:topicId |
Customer |
| GET | /V1/topics/:topicId/posts |
Anonymous |
| GET | /V1/posts/:postId |
Anonymous |
| POST | /V1/posts |
Customer |
| DELETE | /V1/posts/:postId |
Customer |
| GET | /V1/forum/moderators |
Admin |
| POST | /V1/forum/moderators |
Admin |
GraphQL
{
forums(pageSize: 10, currentPage: 1) {
items { forum_id title url_key last_post { content created_at } }
total_count
}
forumTopics(forumId: 1) {
items { topic_id title total_posts first_post { content } last_post { content } }
}
forumPosts(topicId: 42) {
items { post_id content user_id created_at }
}
forumSearch(input: { query: "search", type: "post" }) {
items { post_id content }
}
}
Database
| Table | Purpose |
|---|---|
forum |
Forum categories |
forum_topic |
Discussion topics |
forum_post |
Posts and replies |
forum_report |
Post reports / flags |
forum_moderator |
Moderator assignments |
forum_access |
Customer group permissions |
forum_visitor |
Online visitor tracking |
forum_notification |
Email subscriptions |
forum_usersettings |
User profiles |
Architecture
- Repository pattern with API interfaces
- Declarative schema (
db_schema.xml) - ViewModel pattern — no Block proxy layer
- Service classes:
AuthorisationService,NotificationService,CounterUpdater,UrlKeyGenerator,VisitorTracker - GraphQL resolvers with
@resolverprocessors for relation fields - CSRF on all POST, XSS prevention in all templates
Test
vendor/bin/phpunit -c app/code/Ronald2Wing/Forum/phpunit.xml
License
MIT
ronald2wing/module-forum 适用场景与选型建议
ronald2wing/module-forum 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「forum」 「community」 「moderation」 「magento2」 「discussion-board」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ronald2wing/module-forum 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ronald2wing/module-forum 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ronald2wing/module-forum 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel 5 package providing a solid foundation for building discussion forums
A frontend for riari/laravel-forum providing views written with Bootstrap 3
A CakePHP plugin for adding threaded comments with moderation support
Laravel Profanity Filter - Powerful PHP package for detecting, filtering, and masking profanity in multiple languages. Supports leet speak, custom word lists, case sensitivity, and seamless Laravel integration.
This Bundle provides threaded comment functionality for Symfony applications
Cross-platform general-purpose multiple content forms social network service software.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 49
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-04