subtech / divaexchangerates
This package is abandoned and no longer maintained.
No replacement package was suggested.
Apply and Use up to date exchange rates from DIVA
v1.0.7
2020-09-22 09:50 UTC
Requires
- php: >=5.3
- jrsaunders/quickcache: ^1.0.4
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();