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)315.8k↓27.6%MITPHPPHP ^7.1 || ^8.0CI failing

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 today

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

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

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

1988d 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://avatars.githubusercontent.com/u/5394761?v=4)[Janusz Żukowicz](/maintainers/johnzuk)[@johnzuk](https://github.com/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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M736](/packages/sylius-sylius)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[m4tthumphrey/php-gitlab-api

GitLab API v4 client for PHP

9515.8M76](/packages/m4tthumphrey-php-gitlab-api)[toin0u/digitalocean-v2

DigitalOcean API v2 client for PHP

7351.1M20](/packages/toin0u-digitalocean-v2)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[brd6/notion-sdk-php

Notion SDK for PHP

6123.0k](/packages/brd6-notion-sdk-php)

PHPackages © 2026

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