PHPackages                             imzhi/chinese-number-converter - 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. imzhi/chinese-number-converter

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

imzhi/chinese-number-converter
==============================

v0.1.1(6y ago)1574[4 issues](https://github.com/imzhi/chinese-number-converter/issues)MITPHPCI failing

Since Nov 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/imzhi/chinese-number-converter)[ Packagist](https://packagist.org/packages/imzhi/chinese-number-converter)[ RSS](/packages/imzhi-chinese-number-converter/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Chinese Number Converter（中文数字转换器）
=================================

[](#chinese-number-converter中文数字转换器)

**内容**:

- [简介](#%E7%AE%80%E4%BB%8B)
- [安装](#%E5%AE%89%E8%A3%85)
- [用法](#%E7%94%A8%E6%B3%95)
- [许可证](#%E8%AE%B8%E5%8F%AF%E8%AF%81)

简介
--

[](#简介)

Chinese Number Converter 是中文数字转换器，基于 PHP 语言开发。目前可以将数字转换为中文表示法，未来将增加中文表示法转换为数字的功能。

安装
--

[](#安装)

```
# 设置 Composer 阿里云镜像地址
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
# 安装 Chinese Number Converter
composer require imzhi/chinese-number-converter -vvv
```

用法
--

[](#用法)

```
use Imzhi\ChineseNumberConverter\Converter;

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

$conv = new Converter;
$simp = $conv->simp(987654321);
$trad = $conv->trad(980654321);
$formalSimp = $conv->formalSimp(907654021);
$formalTrad = $conv->formalTrad(987054320);
echo sprintf(
    "987654321(simp): %s\n980654321(trad): %s\n907654021(formalSimp): %s\n987054320(formalTrad): %s\n",
    $simp,
    $trad,
    $formalSimp,
    $formalTrad
);
```

输出结果：

```
987654321(simp): 九亿八千七百六十五万四千三百二十一
980654321(trad): 九億八千零陸十五萬四千參百貳十一
907654021(formalSimp): 玖亿零柒佰陆拾伍万肆仟零贰拾壹
987054320(formalTrad): 玖億捌仟柒佰零伍萬肆仟參佰貳拾

```

许可证
---

[](#许可证)

Chinese Number Converter 扩展包使用 [MIT](/LICENSE) 许可证。

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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 ~0 days

Total

2

Last Release

2359d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

chinese-numbersconverterphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imzhi-chinese-number-converter/health.svg)

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

###  Alternatives

[z38/metzli

PHP library to generate Aztec barcodes

26315.2k](/packages/z38-metzli)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)

PHPackages © 2026

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