Skip to content

This PHP class converts currencies. Not all currencies are supported, but major ones are.

License

Notifications You must be signed in to change notification settings

dleger/currency_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

currency_converter

This PHP class converts currencies. Not all currencies are supported, but major ones are.

Installation

using composer:

composer require dleger/currency_converter:dev-master

How to use it

<?php
require_once('vendor/autoload.php');

use dleger\currency_converter\currency_converter;

$conversion = new currency_converter(FALSE, '', '');

echo $conversion->convert('GBP', 'EUR', 100);
?>

You can also have a cache functionnality:

replace:

<?php
$conversion = new currency_converter(FALSE, '', '');
?>

by:

<?php
$conversion = new currency_converter(TRUE, 'your/cache/folder', 3600); // 3600 is the expiry time
?>

About

This PHP class converts currencies. Not all currencies are supported, but major ones are.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages