abdyfranco/banguat

Provides an easy-to-use class for communicating with the exchange rate web service of Banco de Guatemala.

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/abdyfranco/banguat

v0.4 2019-08-11 20:24 UTC

This package is auto-updated.

Last update: 2025-10-12 09:47:09 UTC


README

Provides an easy-to-use class for communicating with the exchange rate web service of Banco de Guatemala.

<?php

use Banguat\ExchangeRate;

$ExchangeRate = new ExchangeRate();

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

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

Requirements

PHP 5.6+. Other than that, this library has no external requirements.

Installation

You can install this library via Composer.

$ composer require abdyfranco/banguat

License

The MIT License (MIT). Please see "LICENSE.md" File for more information.