PHP Classes

Simple PHP Currency Exchanger: Get exchange rates from feeds

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-09-07 (8 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,480 This week: 1All time: 2,520 This week: 1,086Up
Version License PHP version Categories  
phpcurrencyexchange 1.0.0GNU General Publi...4.0Web services, Finances
Description Author  

This class can be used to get Get exchange rates from feeds.

It retrieves RSS feeds from the site and parses the feeds to retrieve the rates to convert from one currency to many others.

Picture of Shunmuga prasath
Name: Shunmuga prasath <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 1746104 in India India
Week rank: 896 Up68 in India India Up

How to use:
// Create an instance for the class
$exchange = new currencyExchange("INR", 0); // INR is the basic currency code; 0 is the index of U.A.E. Dhiram (AED) in the parsed xml array
$rate = $exchange->getExchangeRate();


For more target currency index check the xml file attached. AED with an index of 0 is the starting element. List ends with South African Rand (ZAR) with index as 47.
  Files folder image Files  
File Role Description
Plain text file class.currencyExchange.php Class Currency Exchange
Plain text file class.parseXml.php Class XML Parser
Accessible without login Plain text file example.php Example Example file
Accessible without login Plain text file INR_1186165800.xml Data Sample XML
Accessible without login Plain text file readme.txt Doc. Readme

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,480All time:2,520
 This week:1This week:1,086Up