oxcom / magento2-currency-services
This is a module that allows to update currency rates from addition external sources.
Installs: 4 607
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 8
Open Issues: 1
Type:magento2-module
Requires
- php: >=7.1
- ext-bcmath: *
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- magento/framework: 100.0.*|100.1.*|101.0.*|102.0.*|103.0.*
- magento/module-backend: 100.0.*|100.1.*|100.2.*|101.0.*|102.0.*|103.0.*
- magento/module-config: 100.0.*|100.1.*|101.0.*|101.1.*|101.2.*
- magento/module-directory: 100.0.*|100.1.*|100.2.*|100.3.*|100.4.*
- magento/module-store: 100.0.*|100.1.*|100.2.*|101.0.*|101.1.*
- psr/log: ^1.1|^2.0|^3.0
Requires (Dev)
- magento/zendframework1: 1.12.*|1.13.*|1.14.*
- phpunit/phpunit: 5.3.5|6.4.4|^9.5.0
- sebastian/phpcpd: ^3.0.1|^5.0.2|^6.0.3
- squizlabs/php_codesniffer: ^3.1
README
This is a module that allows to update currency rates from addition external sources.
List of source services
Notes
-
Fixer
[The old, deprecated Fixer API will be discontinued on June 1st, 2018] We are happy to announce the complete relaunch of fixer.io into a more stable, more secure, and much more advanced currency & exchange rate conversion API platform. While the core structure of our API remains unchanged, all users of the legacy Fixer API will be required to sign up for a free API access key and perform a few simple changes to their integration. To learn more about the changes that are required.
Be aware that free access to Fixer API has limited functionality.
You can setup Access Token for Fixer API in your administration panel for Magento.
-
Finance Google
New changes were introduces by Google and now it's possible only parse HTML to get required information.
Be aware about that Google may change it HTML structure at any time
-
European Central Bank
The reference rates are usually updated around 16:00 CET on every working day, except on TARGET closing days. They are based on a regular daily concertation procedure between central banks across Europe, which normally takes place at 14:15 CET.
Be aware about low refresh rate
Install
$ composer require oxcom/magento2-currency-services $ bin/magento module:enable OxCom_MagentoCurrencyServices $ bin/magento setup:upgrade $ bin/magento setup:di:compile
Tests
Test will be performed on real sources, so internet connection is required.
$ composer install $ vendor/bin/phpunit -c Test/phpunit.xml
Some info how to run tests in Travis + Magento Module