PHPackages                             dresspress/php-chinese-number - 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. dresspress/php-chinese-number

ActiveLibrary

dresspress/php-chinese-number
=============================

PHP阿拉伯数字和中文数字的相互转换。

0.0.4(2y ago)012MITPHPPHP &gt;=5.4

Since Apr 25Pushed 2y agoCompare

[ Source](https://github.com/dresspress/php-chinese-number)[ Packagist](https://packagist.org/packages/dresspress/php-chinese-number)[ Docs](https://github.com/dresspress/php-chinese-number)[ RSS](/packages/dresspress-php-chinese-number/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP Chinese Number
==================

[](#php-chinese-number)

简单的阿拉伯数字和中文数字的相互转换。

有多简单?
-----

[](#有多简单)

目前**只支持最基本的阿拉伯数字格式(324)和中文数字格式(三百二十四)互转，不考虑逗号、货币、小数点、百分比等复杂需求。如果需要这些复杂的功能，可Github搜索PHP Chinese Number, 已有相关的库实现比较完善的阿拉伯数字转中文数字表达**的各种需求。

为什么创建这个包?
---------

[](#为什么创建这个包)

Github上的同类项目，只支持阿拉伯转中文，不支持中文转阿拉伯。为了方便自己Composer而制作此包, 代码复制修改自网络。

阿拉伯数字=&gt;中文数字
--------------

[](#阿拉伯数字中文数字)

```
ChineseNumberHelper::toChinese($number)

```

中文数字=&gt;阿拉伯数字
--------------

[](#中文数字阿拉伯数字)

```
ChineseNumberHelper::toNumber($chinese)

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

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

3

Last Release

746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f69eb7462fdee2d8587b37636e478dbecc2f80613db656981ac68b392853785?d=identicon)[cloudinstone](/maintainers/cloudinstone)

---

Top Contributors

[![wilon](https://avatars.githubusercontent.com/u/7512755?v=4)](https://github.com/wilon "wilon (24 commits)")[![cloudinstone](https://avatars.githubusercontent.com/u/32475472?v=4)](https://github.com/cloudinstone "cloudinstone (8 commits)")[![he426100](https://avatars.githubusercontent.com/u/9689137?v=4)](https://github.com/he426100 "he426100 (1 commits)")[![YiwanGi](https://avatars.githubusercontent.com/u/69124377?v=4)](https://github.com/YiwanGi "YiwanGi (1 commits)")

---

Tags

phpnumberChinese

### Embed Badge

![Health badge](/badges/dresspress-php-chinese-number/health.svg)

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

###  Alternatives

[wilon/php-number2chinese

PHP数字转为汉字描述、人民币大写方法。

14632.0k1](/packages/wilon-php-number2chinese)[jstewmc/php-helpers

Static classes to help with numbers, strings, arrays, files, and bools in PHP

3311.6k2](/packages/jstewmc-php-helpers)

PHPackages © 2026

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