Euro foreign exchange reference rates
, (*1)
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, (*2)
Requirements
The following PHP extension is required:, (*3)
- PHP >= 5.4.0
- option allow_url_fopen=On (default)
- libxml
Installing
You can install eurofxref via Composer with:, (*4)
composer require "mixislv/eurofxref" "^1.0"
Or by adding the following to your composer.json:, (*5)
"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, (*6)