Skip to content

Sub-Tech/DivaExchangeRates-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DivaExchangeRates-PHP

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