easyx/php-currency
最新稳定版本:1.0.4
Composer 安装命令:
composer require easyx/php-currency
包简介
PHP Library for working with currency based on official rates of the Central Bank of the Russian Federation
关键字:
README 文档
README
Library for working with currency based on the Central Bank of Russia exchange rate
⚠️ The library is designed to work with Laravel and PHP 8.0 and newer
Supported currencies
PHP Laravel Currency supports: RUB, AUD, AZN, GBP, AMD, BYN, BGN, BRL, HUF, VND, HKD, GEL, DKK, AED, USD, EUR, EGP, INR, IDR, KZT, CAD, QAR, KGS, CNY, MDL, NZD, NOK, PLN, RON, XDR, SGD, TJS, THB, TRY, TMT, UZS, UAH, CZK, SEK, CHF, RSD, ZAR, KRW, JPY.
Usage
Do currency manipulation in just few lines of code.
use EasyX\Currency; $currency = new Currency(100, 'RUB'); $amountUsd = $currency->convert('USD'); // 0.9341
Environment recommendations
PHP Laravel Currency takes information about the current exchange rate from the Central Bank of the Russian Federation. We strongly recommend setting up Cache if you have not done it before.
CACHE_DRIVER=redis # just not an array
License
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-18