PHP code example of peso / bnr-service

1. Go to this page and download the library: Download peso/bnr-service 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/ */

    

peso / bnr-service example snippets




use Peso\Peso\CurrencyConverter;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Symfony\Component\Cache\Psr16Cache;

ice($cache);
$converter = new CurrencyConverter($service);
bash
composer install peso/bnr-service php-http/discovery guzzlehttp/guzzle symfony/cache