neonexxa/currency-converter
Composer 安装命令:
composer require neonexxa/currency-converter
包简介
php currency converter
README 文档
README
This is a simple library for working with free.currencyconverterapi.com. Be sure that you signup and get your api token from there.
https://free.currencyconverterapi.com/free-api-key
Installation
Composer
composer require neonexxa/currency-converter
Github
Just download any of the release or clone this repository. Feel free to use the way you want it.
How to use
Convert
Be sure that you save the result. Result you get the is the amount after convertion.
use Neonexxa\CurrencyConverter\CurrencyConverter; $converterclass = new CurrencyConverter([ 'api_key' => 'your_api_key', 'currency' => 'USD_MYR' //example for converting USD to MYR ]); $converted_amount = $converterclass->convert("1460");
Getting Currency list
can visit the site currencyconverterapi with your api token https://free.currencyconverterapi.com/api/v6/currencies?apiKey=your_api_key you will get the result in json.
nothing yet ..
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-23