uffe-code/word-count
最新稳定版本:1.0.0
Composer 安装命令:
composer require uffe-code/word-count
包简介
PHP port of the Javascript iarna/word-count
README 文档
README
PHP port of sylae/word-count. This should provide an accurate wordcount taking into account apostrophes and hyphens and stuff. See iarna's project for disclaimers on what languages this method may not work well with.
Usage
composer require uffe-code/word-count
<?php use UffeCode\Wordcount; $string = "This string has five words!"; $count = Wordcount::count($string); // int(5)
Contributing
- PSR-4.
- Write tests.
- Create a PR.
License
MIT
统计信息
- 总下载量: 11.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-08