2017 © Pedro Peláez
 

library currency-php-fixerio-rate-fetcher

An extension to fetch exchange rates from the FixerIO API.

image

tomwright/currency-php-fixerio-rate-fetcher

An extension to fetch exchange rates from the FixerIO API.

  • Monday, October 23, 2017
  • by TomWright
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CurrencyPHP FixerIO Rate Fetcher

Build Status Latest Stable Version Total Downloads Monthly Downloads Daily Downloads License, (*1)

Installation

Install CurrencyPHP., (*2)

composer require tomwright/currency-php
composer require tomwright/currency-php-fixerio-rate-fetcher

Usage

FixerIORateFetcher is just a RateFetcher for CurrencyPHP., (*3)


$rateFetcher = new FixerIORateFetcher(); $gbp = new Currency('GBP', $rateFetcher); $usd = new Currency('USD', $rateFetcher); $priceInGBP = 100; $priceInUSD = $gbp->convertTo($usd, $priceInGBP); echo $priceInUSD; // 126

The Versions

23/10 2017

dev-master

9999999-dev

An extension to fetch exchange rates from the FixerIO API.

  Sources   Download

The Requires