ardigital / tbc-exchange-rates
Tbc Bank Commercial Exchange Rates For Georgian Lari
dev-master
2022-08-16 13:15 UTC
Requires
- php: ^7.2.5 || ^8.0
- guzzlehttp/guzzle: ^7.0.1
This package is auto-updated.
Last update: 2025-03-16 19:02:07 UTC
README
This package allows you Exchange Rates with TbcBank API
Table of Contents
Installation
composer require ardigital/tbc-exchange-rates
For Laravel >= 7.0
Open config/app.php
and add TbcExchangeRatesServiceProvider
to the providers
array.
'providers' => [ ArDigital\TbcExchangeRates\TbcExchangeRatesServiceProvider::class, ],
Then run:
php artisan vendor:publish --provider="ArDigital\TbcExchangeRates\TbcExchangeRatesServiceProvider"
Place your api key config/tbcexchange.php
file Or .env :
TBC_EXCHANGE_RATES_KEY="Your Api Key"
TBC_GUZZLE_VERIFY=false
Usage
Exchange rates Class
In TbcExchangeRates
class, add ResultLis()
method and return currency
use ArDigital\TbcExchangeRates\TbcExchangeRates; public function getCurrency(){ TbcExchangeRates::get(); // Return All currency TbcExchangeRates::get('USD'); // Return Usd currency USD buy and sell } OR: public function Convert(){ TbcExchangeRates::Convert(100, 'USD', 'GEL'); }