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
The following PHP extension is required:
- PHP >= 5.4.0
- option allow_url_fopen=On (default)
- libxml
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"
}
use mixisLv\eurofxref\Ecb;
$ecb = new Ecb();
var_dump($ecb->rates->single("USD"));
Check out examples directory for usage examples