vahidkaargar / currencies
货币列表
0.2
2023-10-29 07:58 UTC
Requires
- php: >=7.4
- illuminate/support: ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^8.10
- phpunit/phpunit: ^10
README
使用此包,您可以获取货币名称列表
需求
- 这是一个Laravel包
- PHP >= 7.4
安装
composer require "vahidkaargar/currencies"
文档
use vahidkaargar\Currencies\Currency; /* * There two ways to use * Output must be an array of currencies names */ $currencies = currency(); $currencies = Currency::fetch(); /* * Give you details of currency */ $currencies = currency('USD'); $currencies = Currency::fetch('USD');
测试
./vendor/bin/phpunit