A Simple way to format digits into currency/ money format.
Note: before using the package, make sure that you have intl extension installed. Click here to follow the steps
You can install the package via composer:
composer require williamug/money-formatter
Use @money
directive in your blade templates. Replace 10000
with any value or variable.
Example
@money(10000)
// 10,000.00
@money(123000)
// 123,000.00
If you want to convert an integer or amount of money into words. Use @numbertowords
directive in your blade files.
Example:
@numbertowords(10000)
// ten thousand
@numbertowords(123000)
// one hundred twenty-three thousand
composer test
Please see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.