PHP code example of older777 / currex
1. Go to this page and download the library: Download older777/currex 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/ */
older777 / currex example snippets
public function page()
{
$currex = CurrExClass::instance();
echo <<<TXT
1 USD = {$currex::getExRate('EUR', false, false)} EUR<br />
1 USD = {$currex::getExRate('CNY')} CNY<br />
1 USD = {$currex::getExRate('JPY')} JPY<br />
1 USD = {$currex::getExRate('RUB')} RUB<br />
1 USD = {$currex::getExRate('GBP')} GBP<br />
1 USD = {$currex::getExRate('BRL')} BRL<br />
TXT;
}