Search by

andrexdd / read-time

andrexdd

Shows an estimated reading time for every discussion, calculated from its word count. No dependencies.

Package info

github.com/andrexdd/flarum-read-time

Type:flarum-extension

pkg:composer/andrexdd/read-time

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-12-01 09:44 UTC

This package is auto-updated.

Last update: 2026-12-01 09:51:47 UTC


README

A Flarum extension that shows an estimated reading time badge on every discussion. Reading time is computed from the full word count of all visible posts in the thread, so a long ongoing discussion reflects how much is actually there to read.

The badge appears next to the discussion title in the list and in the discussion hero. No external dependencies.

Installation

composer require andrexdd/read-time
php flarum migrate
php flarum read-time:recalculate
php flarum cache:clear

Important: run read-time:recalculate once after installing to backfill word counts for discussions that existed before the extension was enabled. New discussions and edits are kept up to date automatically from that point on.

Updating

composer update andrexdd/read-time
php flarum migrate
php flarum cache:clear

Admin settings

Setting Default Description
Words per minute 200 Reading speed used to convert word count to minutes. The average adult reads 200–250 wpm.
Minimum word count 0 Discussions below this threshold show no badge. Set to 0 to always show it.

Console command

php flarum read-time:recalculate

Recalculates the word count of every discussion by summing all its visible posts. Run once after installation, or any time you want to resync counts (e.g. after a bulk import).

Requirements

  • PHP ^8.2
  • Flarum ^2.0.0

Developed by andrexdd