zrnik / cnb-exchange
An exchange class for 'moneyphp/money' using czech national bank exchange rates.
Installs: 1 387
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/zrnik/cnb-exchange
Requires
- php: ^8
- moneyphp/money: ^4
- psr/cache: ^3
- psr/http-client: ^1
- psr/http-factory: ^1
Requires (Dev)
- beste/in-memory-cache: ^1.2
- guzzlehttp/guzzle: ^7
- phpstan/phpstan: ^1
- phpunit/phpunit: ^9.4
- roave/security-advisories: dev-latest
- tracy/tracy: ^2
README
Č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.