mixislv/eurofxref

欧元外汇参考汇率

v1.0.1 2018-11-28 12:59 UTC

This package is auto-updated.

Last update: 2024-08-29 01:31:14 UTC


README

Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

参考汇率通常在工作日的15:00 CET更新,除了TARGET关闭日。它们基于欧洲和全球央行之间的日常常规协商程序,通常在14:15 CET进行。了解更多

要求

需要以下PHP扩展

  • PHP >= 5.4.0
  • 选项 allow_url_fopen=On (默认)
  • libxml

安装

您可以使用Composer安装eurofxref,命令如下:

composer require "mixislv/eurofxref" "^1.0"

或者,您可以在composer.json中添加以下内容:

"require": {
    "mixislv/eurofxref": "^1.0"
}

用法

use mixisLv\eurofxref\Ecb;

$ecb  = new Ecb();

var_dump($ecb->rates->single("USD"));

请查看 示例目录 以了解用法示例