divineomega/php-reading-time
最新稳定版本:v1.0.1
Composer 安装命令:
composer require divineomega/php-reading-time
包简介
Calculates reading time for text
README 文档
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 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();
统计信息
- 总下载量: 925
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2018-04-07