PHPackages                             pownall/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. pownall/read-time

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

pownall/read-time
=================

Simple package for displaying read time

1.0.0(2y ago)215[3 PRs](https://github.com/leepownall/read-time/pulls)MITPHPPHP ^8.2CI passing

Since Oct 31Pushed 1mo agoCompare

[ Source](https://github.com/leepownall/read-time)[ Packagist](https://packagist.org/packages/pownall/read-time)[ Docs](https://github.com/leepownall/read-time)[ GitHub Sponsors](https://github.com/leepownall)[ RSS](/packages/pownall-read-time/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (9)Used By (0)

Read Time
=========

[](#read-time)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1177c247ea1c92e0af840de2ae3bb55c297c24beef2062c51f1d539c836e958b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f776e616c6c2f726561642d74696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pownall/read-time)[![Tests](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml/badge.svg?branch=main&style=flat-square)](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/aebaac3929d52b2c72aca8f9898a7da7a7d16073dc48bc599d453dfdde1336b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f776e616c6c2f726561642d74696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pownall/read-time)

Simple package for displaying read time.

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

[](#installation)

You can install the package via composer:

```
composer require leepownall/read-time
```

Usage
-----

[](#usage)

### Using `get()`

[](#using-get)

```
$readTime = new Pownall\ReadTime\ReadTime('Hello, world!');

$readTime->get();
```

### Using `__toString()`

[](#using-__tostring)

```
$readTime = new Pownall\ReadTime\ReadTime('Hello, world!');

echo $readTime;
```

### Using blade directive

[](#using-blade-directive)

```
@readtime('Hello, world!')
```

### Pass in `wordsPerMinute`

[](#pass-in-wordsperminute)

```
$readTime = new Pownall\ReadTime\ReadTime('Hello, world!', 300);
```

```
@readtime('Hello, world!', 300)
```

Output
------

[](#output)

It uses Carbon under the hood, specifically `forHumans` on the `CarbonInterval`.

The output looks like

```
2 hours 4 minutes
```

### Config

[](#config)

Default `wordsPerMinute` is 200. You can override this by passing it in, or publish the config and override there.

`php artisan vendor:publish --tag=readtime-config`

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lee Pownall](https://github.com/leepownall)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance60

Regular maintenance activity

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 51.6% 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 ~40 days

Total

5

Last Release

764d ago

Major Versions

0.1.0 → 1.0.02024-04-07

PHP version history (2 changes)0.0.1PHP ^8.1

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c88d0e06a53e4dc4c679dbb1598c76c4d17e23b37011e5865bc583c295db96db?d=identicon)[Pownall](/maintainers/Pownall)

---

Top Contributors

[![leepownall](https://avatars.githubusercontent.com/u/757140?v=4)](https://github.com/leepownall "leepownall (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravelread-timelaravelread timeleepownall

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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