fof/gamification
Composer 安装命令:
composer require fof/gamification
包简介
Upvotes and downvotes for your Flarum community
README 文档
README
A Flarum extension. Add upvotes, downvotes, and ranks to your Flarum Community!
Upvote and downvote posts anonymously, and reward active users with ranks, and sort posts by hotness/popularity.
- Q: How is hotness sorted ?
- A: The total amount of hotness is got between the amount of votes on the discussion and the posts inside of it. Also, newer posts with the same amount of upvotes as another post will have more hotness, so time is also an influent factor.
Installation
Install manually with composer:
composer require fof/gamification
You can optionally convert your likes into upvotes, as well as calculate the hotness of all previously existing discussions.
Updating
composer update fof/gamification php flarum migrate php flarum cache:clear
Commands
Gamification doesn't need any CRON job, every calculated value will update itself automatically as needed.
However, if the calculated values become out of date as a result of a database migration, due to the extension being temporarily disabled or to import existing data when first using the extension, you can use the following commands to fix the values.
The following commands can be run in the Flarum folder:
php flarum fof:gamification:assign-groups
Updates all users in the database to match the current "Automatically assigned groups" rules.
Even if a user was manually assigned to a group, the group will still be removed if it doesn't match the rules.
php flarum fof:gamification:resync
Updates all discussions with their total first post votes.
php flarum fof:gamification:resyncUsers
Updates all users with a forced recalculation of points.
Links
An extension by FriendsOfFlarum.
fof/gamification 适用场景与选型建议
fof/gamification 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 66.54k 次下载、GitHub Stars 达 40, 最近一次更新时间为 2019 年 07 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Settings」 「misc」 「Gamification」 「points」 「flarum」 「friendsofflarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fof/gamification 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fof/gamification 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fof/gamification 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Persistent settings package for Laravel framework.
A Zend Framework module to quickly and easily set PHP settings.
Settings Card for Laravel Nova.
Add gamification in laravel app with reputation point and badges support
A comprehensive badge and achievement system for Flarum with conditional triggers, automatic awarding, and manual assignment.
A points-based leaderboard extension for Flarum with configurable point sources, period filtering, and podium display.
统计信息
- 总下载量: 66.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 29
- 依赖项目数: 8
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-09