mucts / money
Numeric amount case conversion
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/mucts/money
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: 2025-09-24 20:14:55 UTC
README
Money
Numeric amount case conversion.
Installation
Server Requirements
you will need to make sure your server meets the following requirements:
php ^7.2
GMP PHP Extension
BCMath PHP Extension
MBString PHP Extension
mucts/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