PHPackages                             vdhicts/read-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vdhicts/read-time

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vdhicts/read-time
=================

Laravel package to determine the time required to read a text

v4.1.1(3mo ago)019.4k↑164.1%1MITPHPPHP ^8.2CI failing

Since Feb 6Pushed 3mo agoCompare

[ Source](https://github.com/vdhicts/read-time)[ Packagist](https://packagist.org/packages/vdhicts/read-time)[ Docs](https://github.com/vdhicts/read-time)[ RSS](/packages/vdhicts-read-time/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (12)Versions (9)Used By (0)

read-time
=========

[](#read-time)

Laravel package to determine the read time of a text.

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

[](#requirements)

This package requires at least Laravel 11+ and PHP 8.2 or newer.

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

[](#installation)

You can install the package via composer:

`composer require vdhicts/read-time`

Usage
-----

[](#usage)

This package can be used multiple ways. When the content contains HTML, the HTML is stripped before calculating the read time.

### Helper

[](#helper)

The helper returns the amount of minutes (as integer) it should take for the reader to read the text.

```
read_time($text);
read_time($text, $wordPerMinute);
```

### Blade

[](#blade)

The blade directive returns the amount of minutes (as integer) it should take for the reader to read the text.

```
@readTime($text)
@readTime($text, $wordPerMinute)
```

### Direct usage

[](#direct-usage)

The class offers a bit more functionality.

```
use Vdhicts\ReadTime\ReadTime;

$readTime = new ReadTime($text);
// OR $readTime = new ReadTime($text, $wordsPerMinute);
$readTime->minutes(); // the amount of minutes (as integer) it should take to read
$readTime->seconds(); // the amount of seconds (as integer) it should take to read
$readTime->wordCount(); // the amount of words (as integer) found in the text
```

### Custom configuration

[](#custom-configuration)

Publish the configuration with:

`php artisan vendor:publish --provider="Vdhicts\ReadTime\ReadTimeServiceProvider"`

Tests
-----

[](#tests)

Unit tests are available in the `tests` folder. Run with:

`composer test`

When you want a code coverage report which will be generated in the `build/report` folder. Run with:

`composer test-coverage`

Contribution
------------

[](#contribution)

Any contribution is welcome, but it should meet the PSR-12 standard and please create one pull request per feature/bug. In exchange, you will be credited as contributor on this page.

Security
--------

[](#security)

If you discover any security related issues in this or other packages of Vdhicts, please email  instead of using the issue tracker.

Support
-------

[](#support)

If you encounter a problem with this package or has a question about it, feel free to open an issue on GitHub.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

About Vdhicts
-------------

[](#about-vdhicts)

[Vdhicts](https://www.vdhicts.nl) is the name of my personal company for which I work as freelancer. Vdhicts develops and implements IT solutions for businesses and educational institutions.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance80

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~300 days

Recently: every ~272 days

Total

6

Last Release

106d ago

Major Versions

v1.0.0 → v2.0.02023-03-26

v2.0.0 → v3.0.02024-03-17

v3.0.0 → v4.0.02025-02-24

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0|^8.1

v2.0.0PHP ^8.0|^8.1

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/88d23e7b707d1cfe0eea91c00590613f45e0c75cb0a3ce89354328332e5c0c02?d=identicon)[vdhicts](/maintainers/vdhicts)

---

Top Contributors

[![dvdheiden](https://avatars.githubusercontent.com/u/90568118?v=4)](https://github.com/dvdheiden "dvdheiden (9 commits)")[![qamar-z](https://avatars.githubusercontent.com/u/171693601?v=4)](https://github.com/qamar-z "qamar-z (1 commits)")

---

Tags

laravelphpread-timetimeread

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vdhicts-read-time/health.svg)

```
[![Health](https://phpackages.com/badges/vdhicts-read-time/health.svg)](https://phpackages.com/packages/vdhicts-read-time)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[mtownsend/read-time

A PHP package to show users how long it takes to read content.

281641.8k2](/packages/mtownsend-read-time)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[wsmallnews/filament-nestedset

Filament nestedset tree builder powered by kalnoy/nestedset with Filament v4 and v5 support

197.8k17](/packages/wsmallnews-filament-nestedset)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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