PHPackages                             callwoola/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. callwoola/php-split

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

callwoola/php-split
===================

php ZH

1.1.1(8y ago)3732616[1 issues](https://github.com/Callwoola/php-split/issues)PHPPHP &gt;=5.3.0CI failing

Since Oct 4Pushed 6y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (6)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

33

—

LowBetter than 74% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~372 days

Total

3

Last Release

3125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5741f86549cb20ce235b9df40b77aec3380492e07ce9c49ce40c45d82f42c39a?d=identicon)[Callwoola](/maintainers/Callwoola)

---

Top Contributors

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

---

Tags

chinesesplit

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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