Product support

Visit this product's website for support.


Formatting currency

You may call the currency facade in PHP using Currency::format or in Twig using the |currency filter.

<?= Currency::format(10) ?>

{{ 10|currency }}

This method takes an options argument, as an array that supports various values.

  • to: To a given currency code
  • from: From a currency code
  • format: Display format. Options: long, short, null.

For example, to convert an amount from USD to BTC:

Currency::format(10, ['from' => 'USD', 'to' => 'BTC']);

To display a currency in long or short format

// $10.00 USD
Currency::format(10, ['format' => 'long']);

// $10
Currency::format(10, ['format' => 'short']);

Improvements to currency formatting parameters.

Aug 31, 2018


Add new exchanges Fixer and CoinMarketCap. Yahoo exchange has been discontinued.

Aug 31, 2018


Add currency form widget and list column type.

Jan 26, 2017


First version of Currency

Jul 02, 2016