mucts/money

Numeric amount case conversion

1.1.1 2020-05-24 08:11 UTC

This package is auto-updated.

Last update: 2024-11-24 18:33:18 UTC


README

Build Status Code Intelligence Status Scrutinizer Code Quality Total Downloads Latest Stable Version License

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