divineomega/php-reading-time

Calculates reading time for text

Fund package maintenance!
DivineOmega

Installs: 693

Dependents: 0

Suggesters: 0

Security: 0

Stars: 17

Watchers: 4

Forks: 1

Open Issues: 3

pkg:composer/divineomega/php-reading-time

v1.0.1 2018-04-07 17:38 UTC

This package is auto-updated.

Last update: 2025-09-24 11:13:36 UTC


README

Build Status Coverage Status StyleCI

This PHP library lets you easily calculate the reading time for a piece of text.

Installation

You can install PHP Reading Time using Composer, as follows.

composer require divineomega/php-reading-time

Usage

The following examples show how you can use PHP Reading Time to calculate the reading time in minutes or seconds. You can also set a reading speed in words per minute (default: 200 wpm).

$readingTime = new ReadingTime($text);

$readingTime->seconds();
$readingTime->minutes();

$readingTime->setWordsPerMinute(240)->minutes();