PHP Classes

Simple PHP Currency Exchanger: Get exchange rates from currencysource.com feeds

Recommend this page to a friend!
     
  Info   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: 1,504 All time: 2,601 This week: 524Up
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 currencysource.com feeds.

It retrieves RSS feeds from the currencysource.com 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: United States United States

Details

How to use: <?php // 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 (5)  
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

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:1,504
This week:0
All time:2,601
This week:524Up