abdyfranco / banguat
Provides an easy-to-use class for communicating with the exchange rate web service of Banco de Guatemala.
v0.4
2019-08-11 20:24 UTC
Requires
- php: >=5.6
- ext-json: *
This package is auto-updated.
Last update: 2025-03-12 08:33:14 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.