Download the PHP package tyryshkinm/exchange-rates without Composer
On this page you can find all versions of the php package tyryshkinm/exchange-rates. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tyryshkinm/exchange-rates
More information about tyryshkinm/exchange-rates
Files in tyryshkinm/exchange-rates
Download tyryshkinm/exchange-rates
More information about tyryshkinm/exchange-rates
Files in tyryshkinm/exchange-rates
Vendor tyryshkinm
Package exchange-rates
Short Description PHP library to retrieve exchange rate from cbr.ru and rbc.ru services.
License
Package exchange-rates
Short Description PHP library to retrieve exchange rate from cbr.ru and rbc.ru services.
License
Please rate this library. Is it a good library?
Informations about the package exchange-rates
Installation
Usage
use Tyryshkinm\ExchangeRates\ExchangeRates;
use Tyryshkinm\ExchangeRates\Factory\ProviderFactory;
use Tyryshkinm\ExchangeRates\Http\Client;
$currency = 'USD'; // USD and EUR are available only.
$date = new \DateTime();
$client = new Client();
$providerFactory = new ProviderFactory($client);
$exchangeRateModel = new ExchangeRates(...$providerFactory->getProviders());
// for adding your own provider
$myOwnProvider = new MyOwnProvider(); // need implement ProviderInterface
$exchangeRateModel->addProvider($myOwnProvider);
$averageRate = $exchangeRateModel->getAverageRate($currency, $date);
All versions of exchange-rates with dependencies
PHP Build Version
Package Version
Requires
ext-simplexml Version
*
ext-json Version *
ext-libxml Version *
ext-json Version *
ext-libxml Version *
The package tyryshkinm/exchange-rates contains the following files
Loading the files please wait ....