exchangehunter / rates-export-php
Library helps build export file for exchangers monitoring
Package info
github.com/exchangehunter/rates-export-php
pkg:composer/exchangehunter/rates-export-php
1.0.1
2023-05-27 17:57 UTC
Requires
- php: ^8.0
- league/flysystem: ^3.0
Requires (Dev)
- phpunit/phpunit: ^10.1
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();