andrexdd / read-time
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
Requires
- php: ^8.2
- flarum/core: ^2.0.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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:recalculateonce 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