Download the PHP package coolert/number_in_chinese without Composer
On this page you can find all versions of the php package coolert/number_in_chinese. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download coolert/number_in_chinese
More information about coolert/number_in_chinese
Files in coolert/number_in_chinese
Download coolert/number_in_chinese
More information about coolert/number_in_chinese
Files in coolert/number_in_chinese
Vendor coolert
Package number_in_chinese
Short Description Convert numbers to Chinese characters
License MIT
Package number_in_chinese
Short Description Convert numbers to Chinese characters
License MIT
Please rate this library. Is it a good library?
Informations about the package number_in_chinese
number_in_chinese
将数字转换为中文汉字的简单php组件。支持整数与浮点数,简繁体输出,目前不支持负数。
环境需求
- PHP >= 7.3
安装
使用
数字转换成中文
示例:
参数说明
- $number - 需要转换的数字
- $dic - 转换成的数字位类型:1:小写,数字'0'用'零’表示 2:小写,数字'0'用'〇‘表示 3:大写('壹','贰','叁'...)
- $unit_dic - 转换后的单位类型:1:简体中文 2:繁体中文
在Laravel中使用
你可以有两种方式获取Coolert\NumberInChinese\Convert实例:
方法参数注入
服务名访问
License
MIT
All versions of number_in_chinese with dependencies
PHP Build Version
Package Version
No informations.
The package coolert/number_in_chinese contains the following files
Loading the files please wait ...
