PHPackages                             zdenekgebauer/cnb-client - 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. zdenekgebauer/cnb-client

ActiveLibrary

zdenekgebauer/cnb-client
========================

Client for retrieving exchange rates from API www.cnb.cz

0.0.1(3y ago)03wtfplPHPPHP &gt;=8.0

Since Jul 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zdenekgebauer/cnb-client)[ Packagist](https://packagist.org/packages/zdenekgebauer/cnb-client)[ RSS](/packages/zdenekgebauer-cnb-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Cryptowatch HTTP client
=======================

[](#cryptowatch-http-client)

[![](https://github.com/zdenekgebauer/cnb-client/workflows/build/badge.svg)](https://github.com/zdenekgebauer/cnb-client/workflows/build/badge.svg)

Client for retrieving exchange rate of the Czech currency against foreign currencies from Czech National Bank ()

Official information:

Installation
------------

[](#installation)

```
composer require zdenekgebauer/cnb-client
```

Usage
-----

[](#usage)

```
use \ZdenekGebauer\CnbClient\Client;
use \ZdenekGebauer\CnbClient\Exception;

$client = new Client();

// retrieve current rate
try {
    $rate = $client->getRate('USD'));
} catch (\ZdenekGebauer\CnbClient\Exception) {
    // exception about unsupported currency or failed connection
}

var_dump($rate->currency) // HUF
var_dump($rate->quantity) // 100
var_dump($rate->rate) // 6.154 means 6.154 CZK/100 HUF
var_dump($rate->date) // date of rate from API

// retrieve rate for specific date
$rate = $client->getRate('HUF', new \DateTime('2022-06-22')));
```

Licence
-------

[](#licence)

Released under the [WTFPL license](copying.txt) .

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36ef4dac7600d246b5d5bf20592da1f536607276921f31000886c6350d39f278?d=identicon)[zdenekgebauer](/maintainers/zdenekgebauer)

---

Top Contributors

[![zdenekgebauer](https://avatars.githubusercontent.com/u/6378486?v=4)](https://github.com/zdenekgebauer "zdenekgebauer (2 commits)")

---

Tags

phpclientcurrencyexchange ratecnb

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/zdenekgebauer-cnb-client/health.svg)

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

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[ebics-api/ebics-client-php

PHP library to communicate with bank through EBICS protocol.

6411.1k](/packages/ebics-api-ebics-client-php)[automattic/wistia-php

PHP wrapper for Wistia API

1431.9k](/packages/automattic-wistia-php)

PHPackages © 2026

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