dwo / ecb_exchange_rates

从欧洲中央银行中搜索外汇参考汇率

v1.0.1 2015-04-16 16:08 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:55:38 UTC


README

Build Status Coverage Status

EcbExchangeRates

从欧洲中央银行中搜索欧元外汇参考汇率。

https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html

安装

使用Composer安装

composer.phar require dwo/ecb_exchange_rates

用法

$exchangeRates = EcbExchangeRates::getAll();

您将接收到一个包含可用货币的数组。

   array(31) {
     ["USD"]=>
     float(1.0711)
     ["JPY"]=>
     float(127.64)
     ...
   )