wannabestart/currency-blade

Package to formatting currency in blade view

v1.0.0 2021-07-24 14:26 UTC

This package is auto-updated.

Last update: 2024-04-27 01:42:20 UTC


README

Downloads

This package can help you to format currency at blade directives.

Getting Started

Install

Run the following command:

composer require wannabestart/currency-blade

Usage

Blade Directives

General syntax

@formatcurrency('3CODE',MONEYVALUE)

Example using at Blade Directives

@formatcurrency('USD', 25000) // $25,000.00 
@formatcurrency('IDR', 25000) // Rp25.000,00
@formatcurrency('', 25000) // If code NULL it will return its value

You can check your 3 code of currency here

Changelog

Please see Releases for more information what has changed recently.

Contributing

Pull requests are more than welcome. You must follow the PSR coding standards.

Security

If you discover any security related issues, You can issued on this repository.

Credits

License

The MIT License (MIT).

Still improving to update new feature 🔥