kerns/craft-forex
Composer 安装命令:
composer require kerns/craft-forex
包简介
Craft 3 plugin that converts currency using API & local storage, based on @leowebguy's Currency Converter
README 文档
README
Craft 3 plugin that converts currency using Rapid API + local storage. Based on Currency Converter by @leowebguy.
Installation
Open your terminal and go to your Craft project:
cd /path/to/project
Then tell Composer to load the plugin:
composer require kerns/craft-forex
In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft Forex.
Go to rapidapi.com/natkapral/api/currency-converter5 → Get your Free API Key
In the Control Panel, go to Settings → Craft Forex and save your API Key
Usage
{% set amount = craft.entries.section('my-section').one().numberfield %}
{{ craft.currency.conversion('USD', 'EUR', amount) }}
Also passing number as string:
{{ craft.currency.conversion('USD', 'EUR', 23) }}
统计信息
- 总下载量: 77
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-11
