PHP code example of dwo / exchange_rate_adapter
1. Go to this page and download the library: Download dwo/exchange_rate_adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dwo / exchange_rate_adapter example snippets
$adapter = new EcbExchangeRateAdapter();
$exchangeRates = $adapter->getAll();
$adapter = new OpenExchangeRateAdapter($yourAppId);
$exchangeRates = $adapter->getAll();
array(31) {
["USD"]=>
float(1.0711)
["JPY"]=>
float(127.64)
...
)