kadekjayak/bi-rates

一个简单的库,用于从印度尼西亚银行获取货币汇率

v1.0 2019-07-20 02:51 UTC

This package is auto-updated.

Last update: 2024-09-20 15:41:14 UTC


README

这是一个简单的库,用于从印度尼西亚银行的网站获取货币汇率(Currency Rate)。

安装

$ composer require kadekjayak/bi-rates

用法

$BiRates = new \Kadekjayak\BiRates\BiRates();

// Get All Rates
$BiRates->getRates();

// Get Specific Rates
$BiRates->getRates('USD');

// Output All Rates
Array (
    ....
    [AUD] => Array
        (
            [sell] => 9884.58
            [buy] => 9784.23
        )
    ....
)

// Output Specific Rates
Array
(
    [sell] => 9884.58
    [buy] => 9784.23
)

测试

$ phpunit

许可证

MIT 许可证(MIT)。请参阅许可证文件获取更多信息。