yaroslavche/sylius-exchange-rates-updater-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固