Swap is a PHP library helping you to retrieve exchange rates for currency pairs from different providers such as Google and Yahoo finance, the European Central Bank and more. Additionally, you can setup a chain of providers in order to prevent downtimes from the main one, and cache fetched rates in your favorite storage.
To install the latest version with Composer, issue the following command
This example only shows the basic features of the library and you are invited to check the complete documentation to know about all its functionalities.
Contributions are welcomed and appreciated. Feel free to create an issue or send a pull request on the Github repository (https://github.com/florianv/swap).comments powered by Disqus