mucts / money
Numeric amount case conversion
1.1.1
2020-05-24 08:11 UTC
Requires
- php: >=7.2
- ext-bcmath: *
- ext-gmp: *
- ext-mbstring: *
- mucts/helpers: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2026-02-24 21:06:53 UTC
README
Money
Numeric amount case conversion.
Installation
Server Requirements
you will need to make sure your server meets the following requirements:
php ^7.2GMP PHP ExtensionBCMath PHP ExtensionMBString PHP Extensionmucts/helpers >=0.1.7
composer require mucts/money
Usage
- Arabic numeral amount into Chinese capital
<?php $amount = '¥987654321.01'; // $amount = -12344555.67; $amountCn = amount_to_cn($amount);
- Convert the amount in Chinese capital into Arabic numerals
<?php $amount = amount_to_digit($amountCn);
License
MIT