zrnik/cnb-exchange

An exchange class for 'moneyphp/money' using czech national bank exchange rates.

v2.0.3 2024-11-10 20:24 UTC

This package is auto-updated.

Last update: 2025-03-10 21:16:11 UTC


README

GitHub Packagist Version

ČNB = Česká Národní Banka (czech national bank)

This is an implementation of the \Money\Exchange interface for \Money\Converter of the moneyphp/money library.

Conversion rates are fetched from czech national bank exchange rates published on their website.

Requirements

  • PHP Version ^8
  • moneyphp/money version ^4
  • library implementing psr/cache
  • library implementing psr/http-client & psr/http-factory

Version 2

Bumped PHP requirement to ^8 and moneyphp/money version ^4. Code got a full refactor. Custom file cache removed in favor of PSR caching interfaces. CURL usage removed in favor of PSR http interfaces.