You can also check: https://free.currencyconverterapi.com
Disclaimer, I'm the author of this website.
A sample conversion URL is: http://free.currencyconverterapi.com/api/v6/convert?q=PHP_EUR,EUR_PHP&compact=ultra&apiKey=sample-api-key which will return a value in json format, e.g. {"PHP_EUR":0.016434,"EUR_PHP":60.849184}
You should note about the limitations though like maximum requests and queries (details found the website). I've implemented limits because there have been abusers of the service.
I've started this since 2014 and has been up ever since (aside from the link change and maintenance down times along the way). I personally use it for my other websites, and provided the service publicly so it can help other devs as well.
Anyway hope this helps, and here's a sample PHP code:
<?php
function convertCurrency($amount, $from, $to){
$conv_id = "{$from}_{$to}";
$string = file_get_contents("https://free.currencyconverterapi.com/api/v6/convert?q=$conv_id&compact=ultra&apiKey=sample-api-key");
$json_a = json_decode($string, true);
return $amount * round($json_a[$conv_id], 4);
}
echo(convertCurrency(5, "USD", "PHP"));
?>