PHPackages                             migratetoflarum/recalculate-meta - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. migratetoflarum/recalculate-meta

ActiveFlarum-extension[Database &amp; ORM](/categories/database)

migratetoflarum/recalculate-meta
================================

Re-calculate the meta information of discussions and users

0.1.1(5y ago)181MITPHP

Since Oct 26Pushed 5y agoCompare

[ Source](https://github.com/migratetoflarum/recalculate-meta)[ Packagist](https://packagist.org/packages/migratetoflarum/recalculate-meta)[ RSS](/packages/migratetoflarum-recalculate-meta/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Recalculate meta
================

[](#recalculate-meta)

This extension allows to re-calculate the meta information of all discussions and users on demand.

Why you might need this extension:

- You manually imported data into your forum and need to create the meta values
- You manually deleted data from your forum and need to fix the meta values
- A Flarum update changed the way the meta is calculated and you want to fix your existing data

**A word of caution**: if an extension makes changes to the way these meta values are calculated, then this script will probably break it and reset all values to the way Flarum calculates them out of the box!

I strongly recommend you test the command on a backup first before running it on your live data!

Installation and update
-----------------------

[](#installation-and-update)

Compatible with both beta 13 and beta 14.

```
composer require migratetoflarum/recalculate-meta

```

Documentation
-------------

[](#documentation)

The extension is implemented as a command line utility. Enable the extension in Flarum admin panel, then open a terminal and `cd` into the Flarum folder.

To run the command with the default options:

```
php flarum migratetoflarum:recalculate-meta

```

You can enable or disable various calculations with command options, for example:

```
php flarum migratetoflarum:recalculate-meta --skip-users
php flarum migratetoflarum:recalculate-meta --do-discussion-number-index

```

To get a list of all available options, run:

```
php flarum help migratetoflarum:recalculate-meta

```

Removal
-------

[](#removal)

When you are done with the update, you can safely remove the extension. It does not need to stay installed.

```
composer remove migratetoflarum/recalculate-meta

```

Links
-----

[](#links)

- [Source code on GitHub](https://github.com/migratetoflarum/recalculate-meta)
- [Report an issue](https://github.com/migratetoflarum/recalculate-meta/issues)
- [Download via Packagist](https://packagist.org/packages/migratetoflarum/recalculate-meta)

The initial version of this extension was sponsored by [@Wadera](https://discuss.flarum.org/u/Wadera)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~172 days

Total

2

Last Release

1852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

---

Top Contributors

[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (3 commits)")

---

Tags

migrationextensionmetaflarum

### Embed Badge

![Health badge](/badges/migratetoflarum-recalculate-meta/health.svg)

```
[![Health](https://phpackages.com/badges/migratetoflarum-recalculate-meta/health.svg)](https://phpackages.com/packages/migratetoflarum-recalculate-meta)
```

###  Alternatives

[c006/yii2-migration-utility

Automatically writes the create tables for migrations or create tables in general

63160.6k1](/packages/c006-yii2-migration-utility)[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

31295.5k6](/packages/dmstr-yii2-migrate-command)[hzhihua/yii2-dump

Generate the schema from an existing database

1828.5k1](/packages/hzhihua-yii2-dump)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
