Skip to content

uikolas/CurrencyExchangeBundle

Repository files navigation

TEST TASK 1

CurrencyExchangeBundle

Description can be found here: Here

Install

Add these line to composer.json:

    [...]
    "require" : {
        [...]
        "uikolas/currency-exchange-bundle" : "master"
    },
    "repositories" : [
        {
            "type" : "vcs",
            "url" : "https://github.com/uikolas/CurrencyExchangeBundle.git"
        }
    ],
    [...]

Update composer

Enable bundle in app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        return [
            // ...
            new CurrencyExchangeBundle\CurrencyExchangeBundle(),   
        ];
    }
}

Usage

$ bin/console currency:rates from_currency to_currency
$ bin/console currency:rate:best from_currency to_currency

Config

If you want to set cache life time, change currency_exchange.cache.cache_lifetime value

parameters:
    currency_exchange.cache.cache_lifetime: 3 # hours value

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages