PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 294 All time: 7,468 This week: 69Up
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: 2768166 in India India
Week rank: 180 Up21 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 (2)  
File Role Description
Plain text file CurrencyConverter.class.php Class class file
Accessible without login Plain text file example.php Example example usage

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:294
This week:0
All time:7,468
This week:69Up