jrsaunders/fixerexchangerates

Apply and Use up to date exchange rates from FIXER.IO

v2.0.0 2018-06-06 09:48 UTC

This package is not auto-updated.

Last update: 2024-11-12 06:00:38 UTC


README

Get Exchange rates from Fixer.io Get an Access Key from https://fixer.io/

$fixerCache = new \FixerExchangeRates\Cache();
$fixerCache->setCachePath( $_SERVER['DOCUMENT_ROOT'] . '/data/exchange_rate/' );
\FixerExchangeRates\AccessKey::setAccessKey('THEACCESSKEYYOUGOTFROMFIXERIO');

$conversion = new \FixerExchangeRates\Conversion( 'USD', 'GBP', 10 );

$convertedValue = $conversion->get();