PHPackages                             awilum/craft-reading-time - 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. [Templating &amp; Views](/categories/templating)
4. /
5. awilum/craft-reading-time

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

awilum/craft-reading-time
=========================

Reading Time plugin shows the estimated reading time of the content, in seconds or minutes.

1.1.0(3y ago)54301[2 issues](https://github.com/Awilum/craft-reading-time/issues)[1 PRs](https://github.com/Awilum/craft-reading-time/pulls)MITPHP

Since Nov 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Awilum/craft-reading-time)[ Packagist](https://packagist.org/packages/awilum/craft-reading-time)[ Fund](https://awilum.github.io/donate/)[ RSS](/packages/awilum-craft-reading-time/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Reading Time plugin for [Craft CMS](https://github.com/craftcms)
================================================================

[](#reading-time-plugin-for-craft-cms)

[![License MIT](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/17330ae6dd024e9e53cb81394db7208fe224d218d58ffe321564ca52a38e0a92/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f6c6162656c3d4c6963656e7365) [![GitHub Repo stars](https://camo.githubusercontent.com/991f2101c21fedd57f3b0378dd0d9e6bdb9b84ac6a07e22746678c68d02d5c4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6177696c756d2f63726166742d72656164696e672d74696d653f6c6162656c3d5374617273)](https://camo.githubusercontent.com/991f2101c21fedd57f3b0378dd0d9e6bdb9b84ac6a07e22746678c68d02d5c4b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6177696c756d2f63726166742d72656164696e672d74696d653f6c6162656c3d5374617273) [![GitHub forks](https://camo.githubusercontent.com/e2d7b5a9a5b5df8a470a4d4636e172f6e01ef4d0bd41a38cc2944d96f94ddb10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6177696c756d2f63726166742d72656164696e672d74696d653f6c6162656c3d466f726b73)](https://camo.githubusercontent.com/e2d7b5a9a5b5df8a470a4d4636e172f6e01ef4d0bd41a38cc2944d96f94ddb10/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6177696c756d2f63726166742d72656164696e672d74696d653f6c6162656c3d466f726b73) [![Hits of Code](https://camo.githubusercontent.com/82b2b4f86795c373e21818b17836aa382df9e732e759f4da95cf796e53afcc75/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f6177696c756d2f63726166742d72656164696e672d74696d653f6272616e63683d312e78)](https://hitsofcode.com)

Reading Time plugin shows the estimated reading time of the content, in seconds or minutes.

Requirements
------------

[](#requirements)

- **Craft CMS**: ^4.0
- **PHP**: ^8.0

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
    cd /path/to/project

    ```
2. In your terminal run `composer require awilum/craft-reading-time`.
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Reading Time.

### Usage

[](#usage)

Display reading time in the twig templates:

```
{{ readingTime('Some text here ...') }}

```

Display reading time with custom translates in the twig templates:

```
{{ readingTime('Some text here ...', {
                'minute': 'Minute',
                'minutes': 'Minutes',
                'second':  'Second',
                'seconds': 'Seconds'
                }) }}

```

Display reading time with custom translates and format in the twig templates:

```
{{ readingTime('Some text here ...', {
                'minute': 'Minute',
                'minutes': 'Minutes',
                'second':  'Second',
                'seconds': 'Seconds',
                'format': '[minutes_count] [minutes_label] – [seconds_count] [seconds_label]'
                }) }}

```

Display reading time with custom translates and format that with alternative format that hides the `minutes` and `seconds` label in the twig templates

```
{{ readingTime('Some text here ...', {
                'minute': 'Minute',
                'minutes': 'Minutes',
                'second':  'Second',
                'seconds': 'Seconds',
                'format': '[minutes_count] [minutes_label] – [seconds_count] [seconds_label]'
                }) }}

```

Also you can use `readingTime` filter in your twig templates:

```
{{ 'Some text here ...'|readingTime }}

```

Use `readingTime` function in the PHP:

```
use function Awilum\CraftReadingTime\readingTime;

echo readingTime('Some text here ...');
```

LICENSE
-------

[](#license)

[The MIT License (MIT)](https://github.com/awilum/craft-reading-time/blob/master/LICENSE.md)Copyright (c) [Sergey Romanenko](https://awilum.github.io/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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 ~11 days

Total

3

Last Release

1244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/652557f36367ca6ed585663426c237bf39c4e1b6589b28a20937517bf43b0fe4?d=identicon)[Awilum](/maintainers/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (30 commits)")

---

Tags

twigCraftcraftcmscraft-plugin

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/awilum-craft-reading-time/health.svg)

```
[![Health](https://phpackages.com/badges/awilum-craft-reading-time/health.svg)](https://phpackages.com/packages/awilum-craft-reading-time)
```

###  Alternatives

[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[viget/craft-classnames

Classnames plugin for Craft CMS

1115.5k1](/packages/viget-craft-classnames)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

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