Download the PHP package steffenbrand/curr-curr without Composer

On this page you can find all versions of the php package steffenbrand/curr-curr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

Please rate this library. Is it a good library?

All versions of curr-curr with dependencies

Informations about the package curr-curr

CurrCurr - Current Currency (Exchange Rates)

Build Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License composer.lock available

CurrCurr Logo

Delivers current exchange rates for EUR provided by the ECB under https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml as PHP objects.

How to install

How to use

Request exchange rate for specific currency

Request all available exchange rates

Using PSR-16 SimpleCache

CurrCurr does not provide its own SimpleCache implementation, however it does give you the possibility to inject any PSR-16 compliant implementation into the EcbClient. You just have to wrap it with a CacheConfig instance.

You can provide your own key and time to live.

Mocking webservice response for Unit Testing your own project

CurrCurr allows you to inject your own implementation of the EcbClientInterface. But you can also use the provided EcbClientMock, which allows you to simulate 3 different responses.


Version
Requires php Version ^7.1 || ^7.2
guzzlehttp/guzzle Version ^6.3
psr/simple-cache Version ^1.0

The package steffenbrand/curr-curr contains the following files

Loading the files please wait ....