sylae/word-count 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. PSR-2.
  2. Write tests.
  3. 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

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-19