jrsaunders/exchangerates

Apply and Use up to date exchange rates

v1.0.7 2017-05-05 11:04 UTC

This package is not auto-updated.

Last update: 2024-11-10 03:05:25 UTC


README

Apply and use up to date exchange rates

Latest Stable Version Total Downloads Latest Unstable Version License


$cache = new \ExchangeRates\Cache();

$cache->setCachePath('/var/www/vhost/my-site/cachedata/');

$conversion = new \ExchangeRates\Conversion('GBP', 'EUR', 10.34);
   
echo $conversion->get();

// will echo out 11.70 - converting GBP 10.34 to EUR 11.70