Performs currency conversion automatically based on api fixer.io
composer require rdehnhardt/exchange-rate
use Rdehnhardt\ExchangeRate\Exchange;
$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD'); // 11,933 - at 2017-09-12
use Rdehnhardt\ExchangeRate\Exchange;
$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD', 1.2987); // 12,987