PHPackages                             winni666-stack/php-split - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. winni666-stack/php-split

ActiveLibrary

winni666-stack/php-split
========================

php ZH

v2.1.1(1y ago)09PHPPHP &gt;=5.3.0

Since Oct 10Pushed 1y agoCompare

[ Source](https://github.com/winni666-stack/php-split)[ Packagist](https://packagist.org/packages/winni666-stack/php-split)[ RSS](/packages/winni666-stack-php-split/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

phpSplit php中文分词库
=================

[](#phpsplit-php中文分词库)

[![Build Status](https://camo.githubusercontent.com/5608295d7ccf811bdf4423280ae1f6e103e138bd4fa739f59ae04621d8e81277/68747470733a2f2f7472617669732d63692e6f72672f43616c6c776f6f6c612f7068702d73706c69742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Callwoola/php-split)

### phpSplit 是一个基于php开发的中文分词库

[](#phpsplit-是一个基于php开发的中文分词库)

居于Unicode编码词典的php分词器

- 只适用于php5，必要函数 iconv
- 本程序是使用RMM逆向匹配算法进行分词的，词库需要特别编译，本类里提供了 MakeDict() 方法
- 简单操作流程： SetSource -&gt; StartAnalysis -&gt; GetResult
- 对主词典使用特殊格式进行编码, 不需要载入词典到内存操作

### 使用

[](#使用)

- 首先 确保使用php为5.4+
- 安装composer

```
composer install

```

```
require __DIR__ .'/vendor/autoload.php';
$split = new \phpSplit\Split\Split();
var_dump($split->simple("您好 phpSplit"));
```

```
array(3) {
  [0] =>
  string(0) ""
  [1] =>
  string(6) "您好"
  [2] =>
  string(8) "phpSplit"
}
```

### 分词结果后缀说明

[](#分词结果后缀说明)

```
名词n、
时间词t、
处所词s、
方位词f、
数词m、
量词q、
区别词b、
代词r、
动词v、
形容词a、
状态词z、
副词d、
介词p、
连词c、
助词u、
语气词y、
叹词e、
拟声词o、
成语i、
习用语l、
简称j、
前接成分h、
后接成分k、
语素g、
非语素字x、
标点符号w
```

同事增加了以下3类标记 \*专有名词的分类标记，即人名nr，地名ns，团体机关单位名称nt，其他专有名词nz； \*语素的子类标记，即名语素Ng，动语素Vg，形容语素Ag，时语素Tg，副语素Dg等； \*动词和形容词的子类标记，即名动词vn（具有名词特性的动词），名形词an（具有名词特性的形容词），副动词vd（具有副词特性的动词），副形词ad（具有副词特性的形容词）

合计约40个左右。

欢迎大家完善

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa9200a13da3b75d63473ee8dc7fe7b4386d37c0294a81ce8b60432cbe9639f8?d=identicon)[winni666-stack](/maintainers/winni666-stack)

---

Top Contributors

[![Callwoola](https://avatars.githubusercontent.com/u/12395015?v=4)](https://github.com/Callwoola "Callwoola (37 commits)")[![winni666-stack](https://avatars.githubusercontent.com/u/184496450?v=4)](https://github.com/winni666-stack "winni666-stack (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/winni666-stack-php-split/health.svg)

```
[![Health](https://phpackages.com/badges/winni666-stack-php-split/health.svg)](https://phpackages.com/packages/winni666-stack-php-split)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
