PHP code example of kodefarmers / nrb-forex
1. Go to this page and download the library: Download kodefarmers/nrb-forex 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/ */
kodefarmers / nrb-forex example snippets
use KodeFarmers\NrbForex\Facades\NrbForex;
return NrbForex::convert(1);
// returns 1 USD to NPR
return NrbForex::from('EUR')->convert(1);
// returns 1 EUR to NPR
bash
$ php artisan vendor:publish --tag=nrbforex