2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-currencyconversion

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

image

vulcandigital/silverstripe-currencyconversion

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

  • Thursday, February 1, 2018
  • by vulcandigital
  • Repository
  • 2 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

silverstripe-currencyconversion

A free currency conversion module for SilverStripe. This modules takes advantage of https://currencylayer.com/ by allowing you to use the free membership, to convert currency from any source to another using simple mathematics, (*1)

Installation

composer require vulcandigital/silverstripe-currencyconversion
  1. After installing you should immediately define your api_key and base_currency as shown in the configuration below
  2. Run dev/build
  3. Run dev/tasks/Vulcan-CurrencyConversion-Tasks-SyncRatesTask

Keeping up to date

This module requires silverstripe/crontask, please ensure you have followed the configuration instructions if you wish to have exchange rates updated periodically, (*2)

By default, exchange rates are scheduled to update every 5 minutes: */5 * * * *, if you would like to change this please see the configuration options below, (*3)

Configuration

Vulcan\CurrencyConversion\CurrencyConversion:
  api_key: "YOUR-API-KEY" # Get yours from currencylayer.com
  base_currency: "NZD" # The default currency to be used in conversions
  cron_schedule: "*/5 * * * *" # How often exchange rates will be updated

Usage

\Vulcan\CurrencyConversion\CurrencyConversion::convert(1, 'USD'); // will convert 1 USD to the base_currency
\Vulcan\CurrencyConversion\CurrencyConversion::convert(1, 'USD', 'GBP'); // will convert 1 USD to GBP

License

BSD-3-Clause, (*4)

The Versions

01/02 2018

dev-master

9999999-dev

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

01/02 2018

1.2.0

1.2.0.0

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

01/02 2018

1.1.0

1.1.0.0

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

31/01 2018

1.0.0

1.0.0.0

A useful module for converting currencies in SilverStripe from one to another using the currencylayer.com API

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires