rdehnhardt / exchange-rate
Performs currency conversion automatically based on api fixer.io
v1.0.3
2017-09-13 13:42 UTC
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^6.3
This package is auto-updated.
Last update: 2024-10-07 01:25:31 UTC
README
Performs currency conversion automatically based on api fixer.io
Instalation
composer require rdehnhardt/exchange-rate
How to use (automatically)
use Rdehnhardt\ExchangeRate\Exchange;
$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD'); // 11,933 - at 2017-09-12
How to use (manually)
use Rdehnhardt\ExchangeRate\Exchange;
$exchange = new Exchange();
$exchange->rate(10, 'EUR', 'USD', 1.2987); // 12,987