bencoderus/bureau-de-change
Composer 安装命令:
composer require bencoderus/bureau-de-change
包简介
A lightweight currency converter with over 40 currencies supports (including cryptocurrencies).
README 文档
README
A lightweight PHP library for currency conversion with over 40 currencies supports (including cryptocurrencies).
Installation
Requires PHP >= 7.0 and composer to install package.
composer require bencoderus/bureau-de-change
Usage
Convert 1 BTC to USD
use Bencoderus\BureauDeChange\Converter; $convert = new Converter(); return $convert->currency('BTC', 'USD')->convert(1);
Convert 100 GBP to USD
use Bencoderus\BureauDeChange\Converter; return (new Converter())->currency('GBP', 'USD')->convert(100);
Supported Currencies
CAD, HKD, ISK, PHP, DKK, HUF, CZK, GBP, RON, SEK, IDR, INR, BRL, RUB, HRK, JPY, THB, CHF, EUR, MYR, BGN, TRY, CNY, NOK, NZD, ZAR, USD, MXN, SGD, AUD, ILS, KRW, PLN, BTC, ETH, LTC, BCH, BNB, EOS, XRP, BNB, XLM, DOT, LINK, YFI
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Author
License
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-05