2017 © Pedro Peláez
 

library currency-convert

Currency Conversion for the Money package

image

clippings/currency-convert

Currency Conversion for the Money package

  • Wednesday, December 23, 2015
  • by hkdobrev
  • Repository
  • 2 Watchers
  • 2 Stars
  • 245 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Currency Convert

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version, (*1)

Currency Conversion for the Money package, (*2)

Usage

Convert £100 to corresponding € amount, based on the daily rate of the European Central Bank, (*3)

use CL\CurrencyConvert\Converter;
use CL\FileCache\ItemPool;
use SebastianBergmann\Money\GBP;
use SebastianBergmann\Money\Currency;

Converter::initialize(new ECBSource(new ItemPool()));

$hundred_pounds = new GBP(10000);

$converted = Converter::get()->convert($hundred_pounds, new Currency('EUR'));

You have to initialize the converter with a source object - default is ECBSource. It also requires a cache pool object (based on PSR Cache), (*4)

License

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin, (*5)

Under BSD-3-Clause license, read LICENSE file., (*6)

The Versions

23/12 2015

dev-master

9999999-dev

Currency Conversion for the Money package

  Sources   Download

BSD-3-Clause

The Requires

 

10/06 2014

0.1

0.1.0.0

Currency Conversion for the Money package

  Sources   Download

BSD-3-Clause

The Requires