sylae/word-count
最新稳定版本:v1.1
Composer 安装命令:
composer require sylae/word-count
包简介
PHP port of the Javascript iarna/word-count
README 文档
README
PHP port of iarna/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 sylae/word-count
<?php use Sylae\Wordcount; $string = "This string has five words!"; $count = Wordcount::count($string); // int(5)
Contributing
I mean if you want to cool i guess <3
- PSR-2.
- Write tests.
- Yeet me a PR.
I'm lowkey pretty sure ::count() could be improved with fancy regex magic, but I'm a dumb bitch so idk.
Versioning
semver.
License
MIT.
统计信息
- 总下载量: 968
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-19