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: 2024-11-24 18:33:18 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