Laravel Exchange Rates API Pack

First, you can get the available currencies:

$exchangeRates = new ExchangeRate();$exchangeRates->currencies();
Get the exchange rate between the two countries:

$exchangeRates = new ExchangeRate();$exchangeRates->exchangeRate'TRY', 'EUR');
You can get an exchange rate between dates:

$exchangeRates = new ExchangeRate();$exchangeRates->exchangeRateBetweenDateRange'TRY', 'EUR', Carbon::now()->subWeek(), Carbon::now());
The following will convert 100 TRY to Euros:

$exchangeRates = new ExchangeRate();$exchangeRates->convert100, 'TRY', 'EUR', Carbon::now());

You can learn more about this package, get all the installation instructions, and get the source code on GitHub view at ash-jc-allen / laravel-exchange-rates .

  Quote

KARABAY A, 2020 . Laravel Exchange Rates API Package,

https://www.karabayyazilim.com/blog/php/framework/laravel/laravel-doviz-kurlari-api-paketi-2020-01-03-063219

(Accessed January 03, 2020).


  Share this post

Comments (0)

Comment

Subscribe
Sign up for the email newsletter to be the first to know about my blog posts