PHP Classes

PHP Yahoo Currency Converter: Convert amounts between currencies using Yahoo API

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 293 This week: 1All time: 7,477 This week: 560Up
Version License PHP version Categories
currency-converter 1.0GNU General Publi...5Tools, Finances
Description 

Author

This class can convert amounts between currencies using Yahoo API.

It can sends an HTTP request to Yahoo API Web server to convert a given amount between two given currencies.

The class supports all currencies supported by the ISO 4217 standard.

The converted amount is return is a monetary value in the target currency.

Picture of Suresh Kumar
Name: Suresh Kumar <contact>
Classes: 2 packages by
Country: India India
Age: ???
All time rank: 2764165 in India India
Week rank: 411 Up26 in India India Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

require_once 'CurrencyConverter.class.php';

 

$currencyConverter = new CurrencyConverter();

$result = $currencyConverter->convert($currency_from = "USD", $currency_to = "INR", $currency_input = 1000);

echo
'1000 USD = '.$result.' INR';




  Files folder image Files  
File Role Description
Plain text file CurrencyConverter.class.php Class class file
Accessible without login Plain text file example.php Example example usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:293
This week:1
All time:7,477
This week:560Up