library currency-php-yahoo-rate-fetcher
An extension to fetch exchange rates from the Yahoo API.
tomwright/currency-php-yahoo-rate-fetcher
An extension to fetch exchange rates from the Yahoo API.
- Thursday, April 13, 2017
- by TomWright
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
CurrencyPHP Yahoo Rate Fetcher
, (*1)
Installation
Install CurrencyPHP., (*2)
composer require tomwright/currency-php
composer require tomwright/currency-php-yahoo-rate-fetcher
Usage
YahooRateFetcher is just a RateFetcher for CurrencyPHP., (*3)
$rateFetcher = new YahooRateFetcher();
$gbp = new Currency('GBP', $rateFetcher);
$usd = new Currency('USD', $rateFetcher);
$priceInGBP = 100;
$priceInUSD = $gbp->convertTo($usd, $priceInGBP);
echo $priceInUSD; // 126
dev-master
9999999-dev
An extension to fetch exchange rates from the Yahoo API.
Sources
Download
The Requires
1.0.0
1.0.0.0
An extension to fetch exchange rates from the Yahoo API.
Sources
Download
The Requires