定制 dleger/currency_converter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-15