PHPackages                             chuoke/rmb-capital - 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. chuoke/rmb-capital

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

chuoke/rmb-capital
==================

阿拉伯数字金额转为汉字大写

1.0.0(4y ago)176101MITPHPPHP ^7.1|^8

Since May 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/chuoke/rmb-capital)[ Packagist](https://packagist.org/packages/chuoke/rmb-capital)[ Docs](https://github.com/chuoke/rmb-capital)[ GitHub Sponsors](https://github.com/chuoke)[ RSS](/packages/chuoke-rmb-capital/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Convert RMB amount to Chinese uppercase.
========================================

[](#convert-rmb-amount-to-chinese-uppercase)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3ee54e57ac3d2b598d06c92f8b5d4263564b9c0a4b794d8371b011685467b35f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368756f6b652f726d622d6361706974616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chuoke/rmb-capital)[![Tests](https://github.com/chuoke/rmb-capital/actions/workflows/run-tests.yml/badge.svg)](https://github.com/chuoke/rmb-capital/actions/workflows/run-tests.yml)[![Check & fix styling](https://github.com/chuoke/rmb-capital/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/chuoke/rmb-capital/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/0c7d421fc4e50e2c870c532eb961f23d892ee46d6e1b608272d181b6b6180ea1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368756f6b652f726d622d6361706974616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chuoke/rmb-capital)

---

将阿拉伯金额数字转换为汉字大写形式。

---

安装
--

[](#安装)

使用 Composer 安装:

```
composer require chuoke/rmb-capital
```

使用
--

[](#使用)

```
$rmbCapital = new Chuoke\RmbCapital\RmbCapital();

echo $rmbCapital->convert(123456789.01);
// 人民币壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元零壹分
```

如果不需要返回”人民币“ 前缀

```
$rmbCapital->withoutPrefix()->convert(123456789.01);
// 壹亿贰仟叁佰肆拾伍万陆仟柒佰捌拾玖元零壹分
```

> 在转换前一定确保数字的正确性。最大金额到万亿级。

---

规范
--

[](#规范)

详查 《会计基础工作规范》，此处总结性的罗列关键点。

- 所有以元为单位
- 汉字大写数字金额如：零、壹、贰、叁、肆、伍、陆、柒、捌、玖、拾、佰、仟、万、亿等
- 大写金额数字到元或者角为止的，在“元”或者“角”字之后应当写“整”字或者“正”字（本项目使用“整”），大写金额数字有分的，分字后面不写“整”或者“正”字
- 大写金额数字前未印有货币名称的，应当加填货币名称，即“人民币”，货币名称与金额数字之间不得留有空白
- 阿拉伯金额数字中间有“0”时，汉字大写金额要写“零”字
- 阿拉伯数字金额中间连续有几个“0”时，汉字大写金额中可以只写一个“零”字； 阿拉伯金额数字元位是“0”，或者数字中间连续有几个“0”、元位也是“0”但角位不是 “0”时，汉字大写金额可以只写一个“零”字，也可以不写“零”字

---

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1813d ago

### Community

Maintainers

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

---

Top Contributors

[![chuoke](https://avatars.githubusercontent.com/u/17611457?v=4)](https://github.com/chuoke "chuoke (7 commits)")

---

Tags

rmbuppercase

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chuoke-rmb-capital/health.svg)

```
[![Health](https://phpackages.com/badges/chuoke-rmb-capital/health.svg)](https://phpackages.com/packages/chuoke-rmb-capital)
```

###  Alternatives

[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M34](/packages/shipmonk-name-collision-detector)[bostondv/bootstrap-ninja-forms

Adds Bootstrap classes to Ninja Forms

222.2k](/packages/bostondv-bootstrap-ninja-forms)

PHPackages © 2026

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