hassanrazadev / exchange-rates
A Laravel package to convert one currency to other.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/hassanrazadev/exchange-rates
Requires
- guzzlehttp/guzzle: ^7.2
This package is auto-updated.
Last update: 2025-12-09 23:59:16 UTC
README
A Laravel package to convert one currency rate to other.
This package uses exchangerate.host to convert currency rates.
Installation
composer require hassanrazadev/exchange-rates
Usage
Get latest rates
Currency::convert();
Set base currency
Currency::convert('USD');
Set target currency
Currency::convert('USD', 'PKR');
Currency::convert('USD', ['PKR', 'EUR']);
Get historical data
Currency::convert('USD', ['PKR', 'EUR'], '2020-02-27');