PHPackages                             progjp/nbu-currency-api - 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. [API Development](/categories/api)
4. /
5. progjp/nbu-currency-api

ActiveLibrary[API Development](/categories/api)

progjp/nbu-currency-api
=======================

Get currency rate from NBU API

v1.0(5y ago)010MITPHPPHP &gt;=7.2

Since Nov 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/progjp/nbu_currency)[ Packagist](https://packagist.org/packages/progjp/nbu-currency-api)[ RSS](/packages/progjp-nbu-currency-api/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/78ac10fd78c403f83e0d0aa36764366fd761debc6213b07eb550434c09eac319/68747470733a2f2f706f7365722e707567782e6f72672f70726f676a702f6e62755f63757272656e63792f762f737461626c65)](https://packagist.org/packages/progjp/nbu_currency)[![Total Downloads](https://camo.githubusercontent.com/8cbd2fa5b0494b271ee6e5872603771fffb66ce54494fe29d47e41378d828199/68747470733a2f2f706f7365722e707567782e6f72672f70726f676a702f6e62755f63757272656e63792f646f776e6c6f616473)](https://packagist.org/packages/progjp/nbu_currency)[![License](https://camo.githubusercontent.com/6cfa12001ff8443b0f6f211b49ca12f7253fe7a77b8713b1f7fae73b17b68334/68747470733a2f2f706f7365722e707567782e6f72672f70726f676a702f6e62755f63757272656e63792f6c6963656e7365)](https://packagist.org/packages/progjp/nbu_currency)[![composer.lock available](https://camo.githubusercontent.com/dac3fc52d75e1a64f0ff0ac8ecdfe51192ff3d6c10e73af31660dd12ae7ba37c/68747470733a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f636f6d706f7365726c6f636b)](https://packagist.org/packages/phpunit/phpunit)

NBU Currency Client
===================

[](#nbu-currency-client)

PHP client for NBU (National bank of Ukraine) API service ()

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

[](#requirements)

- PHP &gt;=7.2
- ext-json
- ext-curl

Install
-------

[](#install)

Via Composer

`$ composer require progjp/nbu_currency`

Usage
-----

[](#usage)

### Get All Currency rates

[](#get-all-currency-rates)

```
$client = new CurrencyApiClient();
$client->getCurrencyRate();
```

### Get All Currency rates by date

[](#get-all-currency-rates-by-date)

```
$client = new CurrencyApiClient();
$client->getCurrencyRate(null, new DateTime());
```

### Get Currency rate by date

[](#get-currency-rate-by-date)

```
$client = new CurrencyApiClient();
$client->getCurrencyRate('USD', new DateTime());
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

2

Last Release

1989d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8ed1ab99efff8d3cb7d74df2989efbb8deed9442d218382e639ba0223b045ff?d=identicon)[progjp](/maintainers/progjp)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/progjp-nbu-currency-api/health.svg)

```
[![Health](https://phpackages.com/badges/progjp-nbu-currency-api/health.svg)](https://phpackages.com/packages/progjp-nbu-currency-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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