2017 © Pedro Peláez
 

silverstripe-module currency-converter

Currency converter for SilverStripe CMS

image

webtorque/currency-converter

Currency converter for SilverStripe CMS

  • Tuesday, February 9, 2016
  • by webtorque
  • Repository
  • 2 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SilverStripe Currency Converter

Simple service for converting currencies for SilverStripe 4+, (*1)

Installation

Composer, (*2)

composer require webtorque/currency-converter

Usage

To convert $99.99 NZD to USD, (*3)

$convertedAmount = CurrencyConverter::get_converter()->convert(99.99, 'NZD', 'USD');

Exchange rates

Default implementation uses an xml feed at http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml. Other sources and be created by inheriting from CurrencyConverter and implementing the retrieveCurrencies function., (*4)

Then change the converter config option on CurrencyConverter e.g., (*5)

Zanderwar\CurrencyConverter\CurrencyConverter:
  converter: MyCurrencyConverter

Alternatively, you can pass the name of the class into get_converter e.g., (*6)

$convertedAmount = CurrencyConverter::getConverter(MyCurrencyConverter::class)->convert(9999, 'NZD', 'USD');

The Versions

09/02 2016

dev-master

9999999-dev

Currency converter for SilverStripe CMS

  Sources   Download

MIT

The Requires

 

by Conrad Dobbs

silverstripe currency conversion

05/01 2015

dev-three-point-oh

dev-three-point-oh

Currency converter for SilverStripe CMS

  Sources   Download

The Requires

 

The Development Requires

silverstripe currency conversion

05/01 2015

0.1.1

0.1.1.0

Currency converter for SilverStripe CMS

  Sources   Download

The Requires

 

The Development Requires

silverstripe currency conversion

04/01 2015

0.1

0.1.0.0

Currency converter for SilverStripe CMS

  Sources   Download

The Requires

 

The Development Requires

silverstripe currency conversion