Currency Exchange
Last updated on
30 April 2025
Currency exchange rates are completely pluggable. All exchange rates are numeric strings. Use PHP's BCMath extension to perform calculations on those strings. Example:
$amount_from = '9.95';
$exchange_rate = CurrencyExchanger::load('EUR', 'UAH');
$amount_to = bcmul($exchange_rate, $amount_from);
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion