PHP code example of abdyfranco / banguat

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

    

abdyfranco / banguat example snippets




use Banguat\ExchangeRate;

$ExchangeRate = new ExchangeRate();

$amount = 100; // Amount in USD
$usd_rate = $ExchangeRate->getCurrencyExchangeRate('GTQ');

$total = $amount * $usd_rate->compra; // Amount in GTQ