jevgenijus/currency-exchange-bundle
Composer 安装命令:
composer require jevgenijus/currency-exchange-bundle
包简介
Determine which bank provides best exchange rate
README 文档
README
Query different banks for specific currency pair exchange rate. Determine which bank provides best exchange rate.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require jevgenijus/currency-exchange-bundle
Step 2: Enable the Bundle
Register bundles in app/AppKernel.php:
class AppKernel extends Kernel { public function registerBundles() { return [ // ... new Jev\CurrencyExchangeBundle\JevCurrencyExchangeBundle(), ]; } // ... }
Step 3: Configure the Bundle
Configure the currencies you need in config.yml file.
# app/config/config.yml jev_currency_exchange: base_currencies: ["EUR", "GBP"] foreign_currencies: ["AUD", "BGN", "CAD", "CHF", "CNY", "CZK", "DKK", "HKD", "HRK", "HUF", "IDR", "ILS", "INR" ]
Usage
Command currency:rates which shows a table of exchange rates for a given currency pair.
$ app/console currency:rates
Command currency:rate:best gives the best exchange rate for a given currency pair.
$ app/console currency:rate:best
License
This package is licensed under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-14