Swap allows you to retrieve currency exchange rates from various services such as Fixer, currencylayer, exchangeratesapi or Abstract and optionally cache the results.
Fixer is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies. | |
currencylayer provides reliable exchange rates and currency conversions for your business up to 168 world currencies. | |
exchangeratesapi provides reliable exchange rates and currency conversions for your business with over 15 data sources. | |
Abstract provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases. |
$ composer require florianv/swap-bundle php-http/message php-http/guzzle6-adapter ^1.0
The complete documentation can be found here.
Here is the list of the currently implemented services:
Fixer is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies. | |
currencylayer provides reliable exchange rates and currency conversions for your business up to 168 world currencies. | |
exchangeratesapi provides reliable exchange rates and currency conversions for your business with over 15 data sources. | |
Abstract provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases. |
The MIT License (MIT). Please see LICENSE for more information.