Skip to content

TomWright/CurrencyPHPYahooRateFetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CurrencyPHP Yahoo Rate Fetcher

Build Status Latest Stable Version Total Downloads Monthly Downloads Daily Downloads License

Installation

Install CurrencyPHP.

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

Usage

YahooRateFetcher is just a RateFetcher for CurrencyPHP.

$rateFetcher = new YahooRateFetcher();

$gbp = new Currency('GBP', $rateFetcher);
$usd = new Currency('USD', $rateFetcher);

$priceInGBP = 100;
$priceInUSD = $gbp->convertTo($usd, $priceInGBP);
echo $priceInUSD; // 126

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages