subtech / divaexchangerates
应用和使用来自DIVA的最新汇率
v1.0.7
2020-09-22 09:50 UTC
Requires
- php: >=5.3
- jrsaunders/quickcache: ^1.0.4
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();