davidvandertuijn / number_format_currency
Number Format Currency
4.2
2022-04-04 12:10 UTC
Requires
- php: >=7.1.0
README
Install
composer require davidvandertuijn/number_format_currency
Usage
number_format_currency('1234.56', 2, 'EUR'); // 1.234,56 number_format_currency('1234.56', 2, 'USD'); // 1,234.56
Support for the currencies below:
English or French Notation
number_format_currency('1234.56', 2, 'CAD', 'English'); // 1,234.56 number_format_currency('1234.56', 2, 'CAD', 'French'); // 1 234,56