florianv / swap-bundle
Integrates the Swap library with Symfony
Installs: 262 924
Dependents: 1
Suggesters: 0
Security: 0
Stars: 54
Watchers: 5
Forks: 29
Open Issues: 4
Type:symfony-bundle
Requires
- php: ^7.1.3|^8.0
- florianv/swap: ^4.0
- symfony/framework-bundle: ~3.0|~4.0|~5.0
Requires (Dev)
- nyholm/psr7: ^1.1
- php-http/guzzle6-adapter: ^1.0
- php-http/message: ^1.7
- phpunit/phpunit: ~5.7|~6.0|~7.0|~8.0|~9.0
- symfony/cache: ~3.0|~4.0|~5.0
Suggests
- symfony/cache: For caching
README
Swap allows you to retrieve currency exchange rates from various services such as Fixer, currencylayer, exchangeratesapi or Abstract and optionally cache the results.
Sponsors
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. |
QuickStart
$ composer require florianv/swap-bundle php-http/message php-http/guzzle6-adapter ^1.0
Documentation
The complete documentation can be found here.
Services
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. |
Credits
License
The MIT License (MIT). Please see LICENSE for more information.