PHPackages                             vvk/wubi - 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. vvk/wubi

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

vvk/wubi
========

A chinese wubi coding query package.

v1.0.1(4y ago)233MITPHPPHP &gt;=7.2

Since Jan 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vvk/wubi)[ Packagist](https://packagist.org/packages/vvk/wubi)[ Docs](https://github.com/vvk/wubi)[ RSS](/packages/vvk-wubi/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

五笔编码查询
======

[](#五笔编码查询)

说明
--

[](#说明)

- 一共收集了 70322 条文字数据，包括常用汉字、不常用汉字及部分偏旁部首的五笔编码。
- 返回的数据包括拼音、Unicode 编码、86版五笔字型编码、98版五笔字型编码、08版五笔字型编码、中国大陆笔顺、中国台湾笔顺。
- 86版五笔字型编码返回为数组，使用第一个即可。
- 由于不同输入法的词库有所不同，部分文字可能不会正常打出。

安装与使用
-----

[](#安装与使用)

### 安装：

[](#安装)

```
composer require vvk/wubi
```

### 使用：

[](#使用)

```
use Vvk\Wubi\Wubi;
$obj = new Wubi();
$result = $obj->getCoding('中国');
print_r($result);
/*
返回结果：
Array
(
    [中] => Array
        (
            [text] => 中
            [pinyin] => zhōng
            [unicode] => U+4E2D
            [wubi86] => Array
                (
                    [0] => k
                    [1] => kh
                    [2] => khk
                )

            [wubi98] => khk
            [wubi06] => khk
            [stroke_order_zh_cn] => 2512
            [stroke_order_zh_tw] => 2512
        )

    [国] => Array
        (
            [text] => 国
            [pinyin] => guó
            [unicode] => U+56FD
            [wubi86] => Array
                (
                    [0] => l
                    [1] => lgy
                    [2] => lgyi
                )

            [wubi98] => lgyi
            [wubi06] => lgyi
            [stroke_order_zh_cn] => 25112141
            [stroke_order_zh_tw] => 25112141
        )
)
*/
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~437 days

Total

2

Last Release

1551d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13550303?v=4)[sunwq](/maintainers/sunwq)[@sunwq](https://github.com/sunwq)

---

Top Contributors

[![vvk](https://avatars.githubusercontent.com/u/8386095?v=4)](https://github.com/vvk "vvk (3 commits)")

---

Tags

chinesechinese-characterschinese-unchinese-unicodepinyinvvkwubi-pinyinwubi06wubi86wubi98unicodePinyinChinesevvkwubiwubi86wubi96wubi06

### Embed Badge

![Health badge](/badges/vvk-wubi/health.svg)

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

###  Alternatives

[overtrue/pinyin

Chinese to pinyin translator.

4.5k6.9M78](/packages/overtrue-pinyin)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k430.4M1.7k](/packages/nette-utils)[overtrue/laravel-pinyin

Chinese to Pinyin translator.

542606.4k12](/packages/overtrue-laravel-pinyin)[voku/portable-utf8

Portable UTF-8 library - performance optimized (unicode) string functions for php.

52323.5M49](/packages/voku-portable-utf8)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6758.1M80](/packages/jbroadway-urlify)[clue/utf8-react

Streaming UTF-8 parser, built on top of ReactPHP.

6611.0M4](/packages/clue-utf8-react)

PHPackages © 2026

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