PHPackages                             maciej-sz/nbp-php - 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. maciej-sz/nbp-php

ActiveLibrary[API Development](/categories/api)

maciej-sz/nbp-php
=================

API for accessing Polish National Bank (NBP - Narodowy Bank Polski) currency and commodities exchange rates

v2.1.0(1y ago)1343.3k↓34.1%12[10 issues](https://github.com/maciej-sz/nbp-php/issues)1MITPHPPHP &gt;=8.1CI passing

Since Mar 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/maciej-sz/nbp-php)[ Packagist](https://packagist.org/packages/maciej-sz/nbp-php)[ RSS](/packages/maciej-sz-nbp-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (10)Used By (1)

nbp-php
=======

[](#nbp-php)

API for accessing Polish National Bank (NBP - Narodowy Bank Polski) currency and commodities exchange rates.

[![Latest Version on Packagist](https://camo.githubusercontent.com/c773232837c7d86021f084e9b8a74461228b8dd29e1a3fc534d73e878bd7f651/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616369656a2d737a2f6e62702d7068702e7376673f7374796c653d736869656c64)](https://packagist.org/packages/maciej-sz/nbp-php)[![No dependencies](https://camo.githubusercontent.com/3bdb18d61b8b7e6660ace4f90a176cd11eed496b7147a927f61dcb08dfea5418/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d6e6f6e652d627269676874677265656e2e7376673f7374796c653d736869656c64)](https://packagist.org/packages/maciej-sz/nbp-php)[![MIT License](https://camo.githubusercontent.com/012eca344bcf49ef029de30cd238b7d498678e8cf012e5aeeac1a2ea708331ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d736869656c64)](https://github.com/maciej-sz/nbp-php/blob/master/LICENSE)

[![Tests Coverage](https://camo.githubusercontent.com/fccde43970df4be8a9707bab682805183ec06639afd2799483875c42f240e2ac/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246636f766572616765)](https://github.com/maciej-sz/nbp-php/actions/workflows/master-coverage.yml)
[![PHP 8.1 Test Result](https://camo.githubusercontent.com/41e75d215d67d7c2cbb10fd04bbdbd4c100d903a971263bed57d4b4af54f69df/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246746573742d726573756c742d382e31)](https://github.com/maciej-sz/nbp-php/actions/workflows/php-tests.yml)
[![PHP 8.2 Test Result](https://camo.githubusercontent.com/d1637d5d29d2e0ba2361d7630ecbefab1ce566391699d0468eae89e1a91462ee/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246746573742d726573756c742d382e32)](https://github.com/maciej-sz/nbp-php/actions/workflows/php-tests.yml)
[![PHP 8.3 Test Result](https://camo.githubusercontent.com/3468e148cd1abf3743452e993cb0fc9824ec1c24653dc34a93a74895ee8c7f1c/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246746573742d726573756c742d382e33)](https://github.com/maciej-sz/nbp-php/actions/workflows/php-tests.yml)
[![PHP 8.4 Test Result](https://camo.githubusercontent.com/c902465b2a2ecb552e382089a518f27d98125e0882b51c407bfac2f7ab76fede/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246746573742d726573756c742d382e34)](https://github.com/maciej-sz/nbp-php/actions/workflows/php-tests.yml)
[![PHP 8.5 Test Result](https://camo.githubusercontent.com/4aed087f2912a5898196c23772b951fb1cf7c445c8c8037ce1b54a10afb7527b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466b7664622e696f253246393653394a6f6d7a55664a4b47646b70555148426b44253246746573742d726573756c742d382e35)](https://github.com/maciej-sz/nbp-php/actions/workflows/php-tests.yml)

Installing via composer
-----------------------

[](#installing-via-composer)

```
composer require maciej-sz/nbp-php
```

Usage
-----

[](#usage)

The full API of this library can be found in [api.md](api.md).

### Minimal setup

[](#minimal-setup)

```
