k0pernikus/currency-converter

Currency conversion using the Eurpean Central bank rates

1.0.2 2015-09-29 11:13 UTC

This package is not auto-updated.

Last update: 2024-05-19 06:55:40 UTC


README

About

Currency Converter supporting the European Central Bank XML.

Installation

Get composer and then require the library using:

composer require k0pernikus/currency-converter

Usage

    $converter = CurrencyConverterFactory::createCurrencyConverter();

    $euroPrice = 1337;

    $usdPrice = $converter
        ->setFromCurrency('EUR')
        ->setToCurrency('USD')
        ->convert($euroPrice);

TODOs

  • symfony2 bundle