Getting started with KdrmklabsCurrencyBundle in Symfony2.
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, (*1)
file: /composer.json
{
"require": {
"kdrmklabs/currency-bundle": "dev-master",
}
}
Now, update the bundle with composer:, (*2)
$ 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
);
}
Add kdrmklabs_ticket configuration to you config.yml, (*3)
# 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:, (*4)
$ php app/console doctrine:schema:update --force
Populate database:, (*5)
, (*6)