PHPackages                             hutong/scws - 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. hutong/scws

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

hutong/scws
===========

scws 中文分词

2201PHP

Since May 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/HuTong/scws)[ Packagist](https://packagist.org/packages/hutong/scws)[ RSS](/packages/hutong-scws/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

scws
====

[](#scws)

scws 中文分词

安装scws sudo wget sudo tar xvjf scws-1.2.3.tar.bz2 sudo ./configure --prefix=/usr/local/scws --enable-namerule sudo ./configure --with-scws=/usr/local/scws --with-php-config=/usr/local/php/bin/php-config

php.ini 配置 \[scws\] extension=scws.so scws.default.charset = "utf8" scws.default.fpath= "/usr/local/scws/etc"

Query.php scws 接口文件

Tfidf.php 新词生词对应的TF/IDF计算器

Dump.php 将xdb文件导出成可视的纯文本文件

/bin/scws-gen-dict 该命令脚本可以将txt文件生成xdb词典文件

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7aaff7a01a02c245b7536d3155d8febba66c30abb902d070d4da16a23a926254?d=identicon)[HuTong](/maintainers/HuTong)

---

Top Contributors

[![HuTong](https://avatars.githubusercontent.com/u/8066878?v=4)](https://github.com/HuTong "HuTong (17 commits)")

### Embed Badge

![Health badge](/badges/hutong-scws/health.svg)

```
[![Health](https://phpackages.com/badges/hutong-scws/health.svg)](https://phpackages.com/packages/hutong-scws)
```

###  Alternatives

[awes-io/form-builder

A component that allows creating forms with two-way binding from data object with default HTML fields and custom, like multi-block or AJAX-select.

6725.1k4](/packages/awes-io-form-builder)[lukasss93/minecraft-server-status

PHP library to check Minecraft Servers Status

425.1k](/packages/lukasss93-minecraft-server-status)[league/glide-slim

Glide adapter for Slim

1216.3k1](/packages/league-glide-slim)

PHPackages © 2026

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