icawebdesign/reading-time
Composer 安装命令:
composer require icawebdesign/reading-time
包简介
Calculate indication of length of time to read an article
README 文档
README
Requirements
- PHP 7.2.0+
Installation
composer require icawebdesign/reading-time
Usage
// Return number of minutes $readingTime = new ReadingTime(); $minutes = $readingTime->minutes($string); // eg: 5
// Return minutes with suffix $readingTime = new ReadingTime(); $readingLength = $readingTime->minutesWithSuffix($string); // eg: 5 minute read
// Change reading speed (default: 250 words-per-minute) $readingTime = new ReadingTime(400); $minutes = $readingTime->minutes($string);
// Change suffix string $readingTime = new ReadingTime(); $readingLength = $readingTime->minutesWithSuffix($string, 'mins reading');
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ian.h@digiserv.net instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 236
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-27