skylark / currency-converter
这将返回您提供的金额和货币的欧元汇率。
dev-master
2023-06-14 13:07 UTC
Requires (Dev)
- orchestra/testbench: 6.x-dev
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-09-14 16:18:47 UTC
README
这将返回您提供的金额和货币的欧元汇率。
安装
使用以下命令安装包:
composer require skylark/currency-converter
在config/app.php中添加提供者
Skylark\CurrencyConverter\CurrencyServiceProvider::class,
提供以下两个参数以获取欧元货币:(i) 金额 (ii) 货币
API是:BaseUrl/currency-converter/{amount}/{currency}
Example:
http://127.0.0.1:8000/currency-converter/100/usd