divineomega / php-reading-time
This package is abandoned and no longer maintained.
The author suggests using the jord-jd/php-reading-time package instead.
Calculates reading time for text
Fund package maintenance!
v4.0.0
2026-07-17 23:54 UTC
Requires
- php: >=7.1
Requires (Dev)
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^7.0 || ^8.0 || ^9.6
Replaces
- divineomega/php-reading-time: v4.0.0
This package is auto-updated.
Last update: 2026-07-18 00:12:09 UTC
README
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 jord-jd/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();