PHP Classes

PHP Currency Converter via Google Finance: Convert money value between currencies with Google

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 163 This week: 1All time: 8,920 This week: 560Up
Version License PHP version Categories
currencyconvertnoapi 1.0.0GNU General Publi...5PHP 5, Web services, Finances, Parsers
Description 

Author

This class can convert money value between currencies with Google.

It can send an HTTP request to retrieve Google pages that present results of converting a money amount between two given the 3 letter codes of the desired currencies.

The class can parse the retrieved page and presents returned the converted amount value.

It does not use any API, so no API keys are necessary

Picture of Ciaran Moore
  Performance   Level  
Name: Ciaran Moore <contact>
Classes: 5 packages by
Country: United Kingdom
Age: 38
All time rank: 2221103 in United Kingdom
Week rank: 411 Up12 in United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

   
include('CurrencyConverter.php');

   
$cc = new CurrencyConverter();

    echo
$cc->convert(1,'EUR', 'NGN') . "\n";

    exit;


Details

CurrencyConverter

Simple Currency Conversion Class

Designed for a quick and easy way of converting one currency to another, without 3rd party API's and bloated responses.

Usage

  
  <?php 

	include('CurrencyConverter.php');

	$cc =  new CurrencyConverter();

	echo $cc->convert(1,'EUR', 'NGN') . "\n";
  

  Files folder image Files  
File Role Description
Plain text file CurrencyConverter.php Class Class source
Plain text file index.php Example Example script
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:163
This week:1
All time:8,920
This week:560Up