Download the PHP package mrcage/chf-exchange-rates without Composer
On this page you can find all versions of the php package mrcage/chf-exchange-rates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mrcage/chf-exchange-rates
More information about mrcage/chf-exchange-rates
Files in mrcage/chf-exchange-rates
Download mrcage/chf-exchange-rates
More information about mrcage/chf-exchange-rates
Files in mrcage/chf-exchange-rates
Vendor mrcage
Package chf-exchange-rates
Short Description Retrieves Swiss Franc exchange rates for foreign currencies based on data from the website of the Swiss Federal Customs Administration.
License LGPL-3.0-or-later
Package chf-exchange-rates
Short Description Retrieves Swiss Franc exchange rates for foreign currencies based on data from the website of the Swiss Federal Customs Administration.
License LGPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package chf-exchange-rates
Swiss Franc exchange rate query library for PHP
Retrieves Swiss Franc exchange rates for foreign currencies based on data from the website of the Swiss Federal Customs Administration.
The library uses internal caching of requested data (cache time is one week).
Usage
Include class
use MrCage\EzvExchangeRates\EzvExchangeRates;
Get exchange rate for current day
$rate = EzvExchangeRates::getExchangeRate('EUR');
Get exchange rate for a day in the past
The date must be specified as Carbon date object.
$rate = EzvExchangeRates::getExchangeRate('USD', Carbon::yesterday());
Get all available currencies
$currencies = EzvExchangeRates::listCurrencies();
This will return a list of currency codes as an array, the key being the (uppercase) currency code, and the value being the base value used for the exchange rate.
All versions of chf-exchange-rates with dependencies
PHP Build Version
Package Version
The package mrcage/chf-exchange-rates contains the following files
Loading the files please wait ....