zhikiri/currency-converter

This package is abandoned and no longer maintained. The author suggests using the ujjwal/currency-converter package instead.

Library for currency exchange

v1.0.3 2015-12-25 07:31 UTC

README

Build Status

Get currency exchange rates & convert amount between currencies in ISO Alpha 3 format. There are some popular API was implemented.

  • Yahoo Finance (Yahoo currency exchange API);
  • fixer.io (details http://fixer.io/).

Notice: All currencies must be passed in ISO Alpha 3 format (ex. "USD" for American Dollar)
For get currency rates:

  $converter = new CurrencyConverter\Converter\Yahoo();
  $converter->rate("USD", "EUR");

For convert amount:

  $converter = new CurrencyConverter\Converter\Yahoo();
  $converter->convert("USD", "EUR", 10);