subtech/divaexchangerates

应用和使用来自DIVA的最新汇率

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

This package is auto-updated.

Last update: 2024-09-22 18:41:10 UTC


README

Div Exchange Rates库

$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();