PHP code example of john_zuk / php-nbp-api
1. Go to this page and download the library: Download john_zuk/php-nbp-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
john_zuk / php-nbp-api example snippets
$client = new \NBP\Client();
$usd = $client->rates()->code('a', 'usd');
echo $usd['rates'][0]['mid'];
bash
composer
bach
php doc/example.php