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 3w ago

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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2042d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2581635?v=4)[Roman Zavialov](/maintainers/progjp)[@progjp](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M974](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

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