{"id":29193054,"url":"https://github.com/friendsofflarum/gamification","last_synced_at":"2025-07-02T02:07:26.325Z","repository":{"id":35008301,"uuid":"196036040","full_name":"FriendsOfFlarum/gamification","owner":"FriendsOfFlarum","description":"Add upvotes, downvotes, and ranks to your Flarum Community","archived":false,"fork":false,"pushed_at":"2024-11-24T16:48:56.000Z","size":2169,"stargazers_count":38,"open_issues_count":14,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T12:24:15.316Z","etag":null,"topics":["add-upvotes","discussion","downvotes","flarum","flarum-community","friendsofflarum","gamification","hotness","ranks"],"latest_commit_sha":null,"homepage":"https://discuss.flarum.org/d/20671-friendsofflarum-gamification","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FriendsOfFlarum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"fof"}},"created_at":"2019-07-09T15:28:40.000Z","updated_at":"2025-04-03T19:56:19.000Z","dependencies_parsed_at":"2024-04-14T10:25:23.635Z","dependency_job_id":"b73dbbfd-4e28-4d0b-87ae-405a37696387","html_url":"https://github.com/FriendsOfFlarum/gamification","commit_stats":{"total_commits":346,"total_committers":36,"mean_commits":9.61111111111111,"dds":0.815028901734104,"last_synced_commit":"7f2e9798c84155d2884374960304e72fc252c64c"},"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"purl":"pkg:github/FriendsOfFlarum/gamification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfFlarum%2Fgamification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfFlarum%2Fgamification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfFlarum%2Fgamification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfFlarum%2Fgamification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendsOfFlarum","download_url":"https://codeload.github.com/FriendsOfFlarum/gamification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfFlarum%2Fgamification/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263061404,"owners_count":23407606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["add-upvotes","discussion","downvotes","flarum","flarum-community","friendsofflarum","gamification","hotness","ranks"],"created_at":"2025-07-02T02:07:25.165Z","updated_at":"2025-07-02T02:07:26.298Z","avatar_url":"https://github.com/FriendsOfFlarum.png","language":"PHP","funding_links":["https://opencollective.com/fof","https://opencollective.com/fof/donate"],"categories":[],"sub_categories":[],"readme":"# Gamification by FriendsOfFlarum\n\n![License](https://img.shields.io/badge/license-MIT-blue.svg) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/gamification.svg)](https://packagist.org/packages/fof/gamification) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)  \n\n[![Extiverse](https://extiverse.com/extension/fof/gamification/open-graph-image)](https://extiverse.com/extension/fof/gamification)\n\nA [Flarum](http://flarum.org) extension. Add upvotes, downvotes, and ranks to your Flarum Community!\n\nUpvote and downvote posts anonymously, and reward active users with ranks, and sort posts by hotness/popularity.\n\n- Q: How is hotness sorted ? \n- 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.\n\n### Installation\n\nInstall manually with composer:\n\n```sh\ncomposer require fof/gamification\n```\n\nYou can optionally convert your likes into upvotes, as well as calculate the hotness of all previously existing discussions.\n\n### Updating\n\n```sh\ncomposer update fof/gamification\nphp flarum migrate\nphp flarum cache:clear\n```\n\n### Commands\n\nGamification doesn't need any CRON job, every calculated value will update itself automatically as needed.\n\nHowever, 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.\n\nThe following commands can be run in the Flarum folder:\n\n#### `php flarum fof:gamification:assign-groups`\n\nUpdates all users in the database to match the current \"Automatically assigned groups\" rules.\n\nEven if a user was manually assigned to a group, the group will still be removed if it doesn't match the rules.\n\n#### `php flarum fof:gamification:resync`\n\nUpdates all discussions with their total first post votes.\n\n#### `php flarum fof:gamification:resyncUsers`\n\nUpdates all users with a forced recalculation of points.\n\n### Links\n\n[\u003cimg src=\"https://opencollective.com/fof/donate/button@2x.png?color=blue\" height=\"25\" /\u003e](https://opencollective.com/fof/donate)\n\n- [Packagist](https://packagist.org/packages/fof/gamification)\n- [GitHub](https://github.com/FriendsOfFlarum/gamification)\n\nAn extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofflarum%2Fgamification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofflarum%2Fgamification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofflarum%2Fgamification/lists"}