john_zuk/php-nbp-api

NBP (Narodowy Bank Polski) API client

2.1 2021-01-21 20:23 UTC

This package is auto-updated.

Last update: 2024-10-22 05:52:37 UTC


README

Installation

Via composer

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

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