ahmeti/bank-exchange-rates

Banka Döviz Kurları - Api

1.8 2023-01-15 22:14 UTC

This package is auto-updated.

Last update: 2024-04-16 01:00:21 UTC


README

Bu paket ile aşağıda belirtilen bankaların, herkese açık (public) kur bilgilerine ulaşabilirsiniz.

Composer ile Yükleme

composer require ahmeti/bank-exchange-rates
require __DIR__ . '/vendor/autoload.php';

try {
    $rates = (new \Ahmeti\BankExchangeRates\Service)->get();
    print_r($rates);
    
}catch (\Exception $exception){
    print_r($exception);
}

Banka Listesi

  • Garanti
  • Yapı Kredi
  • Halkbank
  • Enpara
  • Akbank
  • İş Bankası
  • Kuveyt Türk
  • Ziraat
  • Cepte TEB

Örnek Veriler

[
  "USD/TRY" => [
    [
      "name" => "Garanti",
      "symbol" => "USD/TRY"
      "buy" => 18.463
      "sell" => 19.063
      "time" => "2023-01-06 00:00:37"
      "description" => "Amerikan Doları (us/tr)"
    ],
    [
      "name" => "Yapı Kredi",
      "symbol" => "USD/TRY"
      "buy" => 18.70675
      "sell" => 18.94574
      "time" => "2023-01-06 00:16:08"
      "description" => null
    ]
  ]
  
  "EUR/TRY" => [
    [
      "name" => "Garanti",
      "symbol" => "EUR/TRY"
      "buy" => 19.427
      "sell" => 20.059
      "time" => "2023-01-06 00:00:37"
      "description" => "Avrupa Para Birimi (eu/tr)"
    ],
    [
      "name" => "Yapı Kredi",
      "symbol" => "EUR/TRY"
      "buy" => 19.70949
      "sell" => 19.96007
      "time" => "2023-01-06 00:16:08"
      "description" => null
    ]
  ]
]
...