subtech/divaexchangerates

Apply and Use up to date exchange rates from DIVA

v1.0.7 2020-09-22 09:50 UTC

This package is auto-updated.

Last update: 2024-10-22 18:46:06 UTC


README

Diva Exchange Rates Library

$divaCache = new \DivaExchangeRates\Cache();
$divaCache->setCachePath( $_SERVER['DOCUMENT_ROOT'] . '/data/exchange_rate/' );
\DivaExchangeRates\Auth::setApiKey( 'yourkeyprovidedbydivaadmin' );
$conversion = new \DivaExchangeRates\Conversion( 'USD', 'GBP', 10 );

$convertedValue = $conversion->get();