PHPackages                             realodix/readtime - 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. realodix/readtime

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

realodix/readtime
=================

Medium's like reading time estimation.

v1.6.4(2mo ago)613.3k1MITPHPPHP ^8.1CI passing

Since Jun 26Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/realodix/readtime)[ Packagist](https://packagist.org/packages/realodix/readtime)[ Docs](https://github.com/realodix/readtime)[ RSS](/packages/realodix-readtime/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (9)Versions (20)Used By (0)

Read time
=========

[](#read-time)

[![PHPVersion](https://camo.githubusercontent.com/f1314f86ce41e6dc7a2d2b32419d8d7b37945e64a1f611c39a3c54312c97bc44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d3737374242342e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/f1314f86ce41e6dc7a2d2b32419d8d7b37945e64a1f611c39a3c54312c97bc44/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312d3737374242342e7376673f7374796c653d666c61742d737175617265)[![Build Status](https://github.com/realodix/readtime/actions/workflows/ci.yml/badge.svg)](https://github.com/realodix/readtime/actions/workflows/ci.yml/badge.svg)[![GitHub license](https://camo.githubusercontent.com/3941e5bc4b886b1efbc1e889a1691445a29619053c86d53671e3ba3b1c27980f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7265616c6f6469782f7265616474696d653f7374796c653d666c61742d737175617265)](https://github.com/realodix/readtime/blob/main/LICENSE)

📚 Medium's like reading time estimation, based on [Medium's read time formula](https://help.medium.com/hc/en-us/articles/214991667-Read-time).

Sites like Medium.com have popularized the concept of giving users an estimate for the amount of time it will take them to read the content. With this convenience in mind, ReadTime gives PHP developers the same tool for their readable content. It's a simple feature that will give a nice touch to your PHP application.

### Features

[](#features)

- Calculates read time of images in decreasing progression (Example - 12 seconds for the first image, 11 for the second, until images counted at 3 seconds).
- Calculates read time of the Chinese / Japanese / Korean characters separately.
- Removes unwanted html tags to calculate read time more efficiently.

**Reference**

- [help.medium.com/articles/Read-time](https://help.medium.com/hc/en-us/articles/214991667-Read-time)
- [medium.com/blogging-guide/how-is-medium-article-read-time-calculated](https://medium.com/blogging-guide/how-is-medium-article-read-time-calculated-924420338a85)

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

[](#installation)

You can install the package via composer:

```
composer require realodix/readtime
```

Quick start
-----------

[](#quick-start)

Here is an example of the most basic usage:

```
