PHP Classes

CurrencyExchange: Convert values between currencies using a XML feed

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 1,751 All time: 2,245 This week: 455Up
Version License Categories
currencyexchange 1.0GNU General Publi...PHP 5, Web services, Conversion, Fina...
Description 

Author

This class can be used to convert money amounts between two currencies using the European Central bank currencies XML feed.

It has methods to set the original and the converted currencies.

It may either return the conversion rate or the converted value of a given amount.

It can cache a previously retrieved version of the currencies feed to minimize the overhead of fetching the feed repeatedly.

Picture of Mick Sear
Name: Mick Sear is available for providing paid consulting. Contact Mick Sear .
Classes: 8 packages by
Country: United Kingdom
Age: 51
All time rank: 372 in United Kingdom
Week rank: 195 Down8 in United Kingdom Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Screenshots (1)  
  • screengrab.gif
  Files folder image Files (4)  
File Role Description
Plain text file CurrencyConverter.php Class Main class file
Plain text file example.php Example Simple example to get rate
Plain text file example2.php Example More complex example to convert an amount to another currency

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,751
This week:0
All time:2,245
This week:455Up
User Ratings User Comments (1)
 All time
Utility:81%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1299
 
Excellent
15 years ago (kishore kumar)
70%StarStarStarStar