joan-ramirez/currency
Composer 安装命令:
composer require joan-ramirez/currency
包简介
Package to see the value of one currency compared to another
README 文档
README
Library to see the value of a currency in comparison with another, it accepts the change of all the currencies in the world.
Installation
Add joan-ramirez/currency as a require dependency in your composer.json file:
composer require joan-ramirez/currency
Usage
Create a currency instance
use JoanRamirez/Currency/Currency; $currency = new Currency();
Get USD value converted to EUR change()->get() methods
$currency->change('USD', 'EUR')->get();
Get the value of $100 USD converted to EUR with the amount() method
$currency->change('USD', 'EUR')->amount(100)->get();
License
Currency is licensed under the MIT license.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-15