d3catalyst/exchangerate 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

d3catalyst/exchangerate

Composer 安装命令:

composer require d3catalyst/exchangerate

包简介

Package currency exchange between two currencies

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

Laravel 4 Library for calling http://rate-exchange.appspot.com/currency API.

This library provides an easy way to make the currency exchange, a much needed application in ecommerce systems.

Just install the package, add the config and it is ready to use!

Requirements

  • PHP >= 5.3.7
  • cURL Extension

Installation

Add in composer.json
"d3catalyst/exchangerate": "dev-master"

Add the service provider and facade in your config/app.php

Service Provider

D3Catalyst\Exchangerate\Laravel4\ServiceProviders\ExchangerateServiceProvider

Facade

'Exchange'           => 'D3Catalyst\Exchangerate\Laravel4\Facades\Exchangerate',

Usage

- Usage with default setters

Set initial config
	Exchange::setCurrency('DLS','EUR');

Get exchange value / return int or float value
	Exchange::getExchangeValue();

- Usage with independent setters

Set country currency code from
	Exchange::setCurrencyFrom($currency);

Set country currency code to
	Exchange::setCurrencyTo($currency);

Set amount - number
	Exchange::setAmount($amount);

Get exchange value / return int or float value
	Exchange::getExchangeValue();

- Common

Get full exchange rate information
	Exchange::getExchangeRateInfo();

统计信息

  • 总下载量: 463
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固