easyx/php-currency 问题修复 & 功能扩展

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

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

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

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-18