florianv/exchanger
PHP exchange-rate provider layer with 31 services behind one ExchangeRateService interface. Supports historical rates, PSR-16 caching, and chainable fallback across providers (commercial APIs, ECB, national banks, exchangerate.host) for fine-grained control.
Migrated from PHP 5.5 to PHP 7.1+
Updated PHP HTTP dependency to version 2
Removed the deprecated Yahoo service which has been removed by Yahoo
Removed the deprecated Google service which has been very unreliable and unstable on different platforms
Fixed the exchange rate value to always be a float instead of a string
Added information about which service returned a rate with ExchangeRate::getProviderName()
Removed the InternalException only used in the PhpArray service
Modified the PHPArray service to only support scalars as rates (rate objects are not compatible)
We now rely on PSR-16 Simple Cache instead of PSR-6 Cache. You can use https://github.com/php-cache/simple-cache-bridge as a bridge between PSR-6 and PSR-16.
Added a getCurrencyPair() to the exchange rate objects
Removed the Historical service class in favor of the SupportsHistoricalQueries trait
How can I help you explore Laravel packages today?