PHP code example of exchangehunter / rates-export-php
1. Go to this page and download the library: Download exchangehunter/rates-export-php 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/ */
exchangehunter / rates-export-php example snippets
// Create exporter instance with export file path
$filePath = 'path/export.xml';
$exporter = new \Exchangehunter\RatesExportPhp\Exporter($filePath);
// Add some rates for export
$exporter->add('BTC', 'USDT', 1, 25000, 10, 0.01, 1);
// Save file
$exporter->save();
shell
composer