kdrmklabs/currency-bundle
Composer 安装命令:
composer require kdrmklabs/currency-bundle
包简介
This bundle provides a complete handler for currency exchange rates to Symfony2 applications.
README 文档
README
Instalation
I. Installing the bundle in two different ways.
Install this bundle by adding next code line to your project in the composer.json file and after update it with the command composer update
file: /composer.json { "require": { "kdrmklabs/currency-bundle": "dev-master", } }
Now, update the bundle with composer:
$ composer update kdrmklabs/currency-bundle
II. Enable and register the Bundle in the AppKernel
// file: app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Kdrmklabs\Bundle\CurrencyBundle\KdrmklabsCurrencyBundle(), // ... // Your application bundles ); }
Configure the bundle.
Add kdrmklabs_ticket configuration to you config.yml
# file: app/config/config.yml kdrmklabs_currency: default_currency: "USD"
Finally, create database tables, update the schems and populate tables
Update your database schema with the command:
$ php app/console doctrine:schema:update --force
Populate database:
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-31
