milantarami / money-format
This package is abandoned and no longer maintained.
The author suggests using the milantarami/number-to-words package instead.
alternative for money_format() for windows machine
v1.0.0
2019-09-04 17:04 UTC
This package is auto-updated.
Last update: 2020-12-03 18:31:30 UTC
README
alternative for money_format() for windows machine
Installation and setup
You can install this package via composer using:
composer require milantarami/money-format
Overview
MoneyFormat::get(Input, Locale, Enable_Monetary_Symbol, Custom_Monetary_Symbol);
Usage
$formatted = MoneyFormat::get('123456', 'np'); // output : 1,23,456.00 $formatted = MoneyFormat::get('123456', 'np', true); //output : रू 1,23,456.00 $formatted = MoneyFormat::get('123456', 'np', true, 'NPR'); // output : NPR 1,23,456.00 $formatted = MoneyFormat::get('123456', 'us'); // output : 123,456.00