davidvandertuijn/number_format_currency

4.2 2022-04-04 12:10 UTC

This package is auto-updated.

Last update: 2024-11-29 13:38:37 UTC


README

Total Downloads Latest Stable Version License

Number Format Currency

The “Number Format Currency” tool is designed to assist users in formatting numerical values as currency, enhancing the clarity and professionalism of financial data presentations. This functionality is essential for businesses, accountants, and analysts who need to display monetary amounts accurately and consistently.

"Buy Me A Coffee"

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