yaroslavche/sylius-exchange-rates-updater-plugin
Composer 安装命令:
composer require yaroslavche/sylius-exchange-rates-updater-plugin
包简介
Sylius exchange rates update console command.
README 文档
README
bin/console sylius:exchange-rates:generate
This command generate all available unique currency pairs from Sylius available currencies.
Update exchange rates
bin/console sylius:exchange-rates:update
This command try to update all existing exchange rates in Sylius.
Install
composer require yaroslavche/sylius-exchange-rates-updater-plugin
Register plugin
# app/AppKernel.php # ... public function registerBundles(): array { $bundles = [ # ... new \Acme\SyliusExchangeRatesUpdaterPlugin\AcmeSyliusExchangeRatesUpdaterPlugin(), ]; #... }
Import service config
#app/config/config.yml imports: # ... - { resource: '@AcmeSyliusExchangeRatesUpdaterPlugin/Resources/config/services.yml' } # ...
And add params:
#app/config/parameters.yml parameters: # ... exchange_rates_updater_plugin.openexchangerates: 'your_api_key' exchange_rates_updater_plugin.fixer: 'your_api_key' # not used now
Usage
For daily update add following to crontab:
0 0 * * * /path_to_sylius/bin/console sylius:exchange-rates:update
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-01