PHPackages                             easyconn/chinese - 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. easyconn/chinese

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

easyconn/chinese
================

中文繁簡轉換 Convert Traditional and Simplified Chinese

1.0.0(6y ago)021MITPHP

Since Sep 22Pushed 6y agoCompare

[ Source](https://github.com/easyconn/PHP-Chinese)[ Packagist](https://packagist.org/packages/easyconn/chinese)[ RSS](/packages/easyconn-chinese/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (12)Used By (0)

Chinese Conversion
==================

[](#chinese-conversion)

PHP Chinese Conversion, Simple, Lightweight (v0.2 with WikiMedia Library &lt; 400KB)

Installation
============

[](#installation)

Use [Composer](https://getcomposer.org)
---------------------------------------

[](#use-composer)

```
composer require steelywing/chinese

```

Manually install
----------------

[](#manually-install)

- Clone this repo

    ```
    git clone https://github.com/steelywing/PHP-Chinese.git

    ```
- Generate `autoload.php`, run on `PHP-Chinese` folder

    ```
    composer dump-autoload

    ```

Feature
=======

[](#feature)

- Use WikiMedia or OpenCC library
- Lightweight
- 使用最長匹配規則

Demo
====

[](#demo)

For more usage, see [demo.php](demo/demo.php)

```
require_once __DIR__ . '/vendor/autoload.php';

use SteelyWing\Chinese\Chinese;

$chinese = new Chinese();

echo $chinese->to(Chinese::ZH_HANS, '轉成簡體中文'); // 转成简体中文
echo $chinese->to(Chinese::ZH_HANT, '转成繁体中文'); // 轉成繁體中文
```

Switch library
==============

[](#switch-library)

Switch to OpenCC, run the following command in `dict` folder

```
git clone https://github.com/BYVoid/OpenCC.git
php import_opencc.php
```

Switch to WikiMedia, run the following command in `dict` folder

```
php import_wikimedia.php
```

License
=======

[](#license)

MIT

[WikiMedia License](https://github.com/wikimedia/mediawiki/blob/master/COPYING)

[OpenCC License](https://github.com/BYVoid/OpenCC/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~90 days

Recently: every ~70 days

Total

11

Last Release

2256d ago

Major Versions

0.5.3 → 1.0.02020-03-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4ac4a61a375acd610e910c3a85beace8bf6dedc6c26ce52ba590c094d4755ed?d=identicon)[zhuzhu](/maintainers/zhuzhu)

---

Top Contributors

[![steelywing](https://avatars.githubusercontent.com/u/2720049?v=4)](https://github.com/steelywing "steelywing (19 commits)")[![zz](https://avatars.githubusercontent.com/u/41499?v=4)](https://github.com/zz "zz (2 commits)")

### Embed Badge

![Health badge](/badges/easyconn-chinese/health.svg)

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

###  Alternatives

[2tvenom/cborencode

CBOR encoder for PHP

6213.1M17](/packages/2tvenom-cborencode)

PHPackages © 2026

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