PHPackages                             zrnik/cnb-exchange - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zrnik/cnb-exchange

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zrnik/cnb-exchange
==================

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

v2.0.4(1y ago)01.6kMITPHPPHP ^8CI failing

Since Oct 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Zrnik/cnb-exchange)[ Packagist](https://packagist.org/packages/zrnik/cnb-exchange)[ RSS](/packages/zrnik-cnb-exchange/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (9)Dependencies (10)Versions (10)Used By (0)

ČNB Exchange
============

[](#čnb-exchange)

[![GitHub](https://camo.githubusercontent.com/c5a935fd2231c5940aa7411e1ae6846ed45cdb18ab06c2c47310b154c1c8decf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a726e696b2f434e422d45786368616e6765)](https://camo.githubusercontent.com/c5a935fd2231c5940aa7411e1ae6846ed45cdb18ab06c2c47310b154c1c8decf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a726e696b2f434e422d45786368616e6765)[![Packagist Version](https://camo.githubusercontent.com/e0ebbc5f426fb42447cb649b9321d1caf6b1d559dc33d51bc2bdee8b1a82db32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a726e696b2f636e622d65786368616e6765)](https://camo.githubusercontent.com/e0ebbc5f426fb42447cb649b9321d1caf6b1d559dc33d51bc2bdee8b1a82db32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a726e696b2f636e622d65786368616e6765)

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

This is an implementation of the `\Money\Exchange`interface for `\Money\Converter` of the [moneyphp/money](https://github.com/moneyphp/money) library.

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

Requirements
------------

[](#requirements)

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

Version 2
---------

[](#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.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance46

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~209 days

Recently: every ~70 days

Total

9

Last Release

417d ago

Major Versions

v1.2.0 → v2.x-dev2022-11-20

PHP version history (3 changes)v1.0.0PHP &gt;= 7.4

v2.x-devPHP &gt;=7.4|&gt;=8.0

v2.0.0PHP ^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55077930?v=4)[Štěpán Zrník](/maintainers/zrnik)[@Zrnik](https://github.com/Zrnik)

---

Top Contributors

[![Zrnik](https://avatars.githubusercontent.com/u/55077930?v=4)](https://github.com/Zrnik "Zrnik (27 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/zrnik-cnb-exchange/health.svg)

```
[![Health](https://phpackages.com/badges/zrnik-cnb-exchange/health.svg)](https://phpackages.com/packages/zrnik-cnb-exchange)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)[windwalker/framework

The next generation PHP framework.

25640.0k1](/packages/windwalker-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M519](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
