exchangehunter/rates-export-php

Library helps build export file for exchangers monitoring

1.0.1 2023-05-27 17:57 UTC

This package is auto-updated.

Last update: 2024-10-27 20:55:59 UTC


README

This library helps you to generate rates export file for exchangers monitors.

Installation

composer require exchangehunter/rates-export-php

Usage:

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