PHPackages                             john\_zuk/php-nbp-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. john\_zuk/php-nbp-api

ActiveLibrary[API Development](/categories/api)

john\_zuk/php-nbp-api
=====================

NBP (Narodowy Bank Polski) API client

2.1(5y ago)214.7k↓40.6%MITPHPPHP ^7.1 || ^8.0

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/johnzuk/php-nbp-api)[ Packagist](https://packagist.org/packages/john_zuk/php-nbp-api)[ RSS](/packages/john-zuk-php-nbp-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (5)Used By (0)

A PHP wrapper to be used with [NBP (Narodowy Bank Polski) API](http://api.nbp.pl/).
===================================================================================

[](#a-php-wrapper-to-be-used-with-nbp-narodowy-bank-polski-api)

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

[](#installation)

Via [composer](https://getcomposer.org)

```
composer require john_zuk/php-nbp-api guzzlehttp/guzzle:^7.2 http-interop/http-factory-guzzle:^1.0
```

Example API Usage
-----------------

[](#example-api-usage)

```
require_once 'vendor/autoload.php';

$client = new \NBP\Client();

$usd = $client->rates()->code('a', 'usd');

echo $usd['rates'][0]['mid'];
```

```
php doc/example.php

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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 ~632 days

Total

3

Last Release

1943d ago

Major Versions

1.0 → 2.0.02021-01-21

PHP version history (2 changes)1.0PHP ^5.5 || ^7.0

2.0.0PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![johnzuk](https://avatars.githubusercontent.com/u/5394761?v=4)](https://github.com/johnzuk "johnzuk (1 commits)")

---

Tags

apimoneycurrencynbp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/john-zuk-php-nbp-api/health.svg)

```
[![Health](https://phpackages.com/badges/john-zuk-php-nbp-api/health.svg)](https://phpackages.com/packages/john-zuk-php-nbp-api)
```

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[florianv/exchanger

Currency exchange rates framework for PHP

1874.7M15](/packages/florianv-exchanger)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)

PHPackages © 2026

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