dleger/currency_converter
Composer 安装命令:
composer require dleger/currency_converter
包简介
A simple script for converting currencies
README 文档
README
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
?>
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-15