mixislv/eurofxref

Euro foreign exchange reference rates

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

This package is auto-updated.

Last update: 2024-11-29 02:07:57 UTC


README

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

The reference rates are usually updated by 15:00 CET on every working day, except on TARGET closing days. They are based on a regular daily concertation procedure between central banks across Europe and worldwide, which normally takes place at 14:15 CET. see more

Requirements

The following PHP extension is required:

  • PHP >= 5.4.0
  • option allow_url_fopen=On (default)
  • libxml

Installing

You can install eurofxref via Composer with:

composer require "mixislv/eurofxref" "^1.0"

Or by adding the following to your composer.json:

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

Usage

use mixisLv\eurofxref\Ecb;

$ecb  = new Ecb();

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

Check out examples directory for usage examples