boonkuaeboonsutta/fx-rate-bundle

fx-rate-bundle

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.0.0.2 2018-05-22 18:09 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:51:22 UTC


README

FxRateBundle is a way for connect to FX Rate API into your Symfony application.

Install the package with:

composer require boonkuaeboonsutta/fx-rate-bundle

Create 'config/routes/bk_fx_rate.yml' file. A File contain as below

_bk_fx_rate:
    resource: '@BKFxRateBundle/Resources/config/routes.xml'
    prefix: /api/fxrate/

Create anathor file at 'config/packages/bk_fx_rate.yml'

bk_fx_rate :
  endpoints : https://forex.1forge.com/1.0.3/convert
  api_key : <YOUR API KEY>

Usage

This bundle provides a single service for connect to the FX Api, which you can autowire by using the BK type-hint: