library tcmb-doviz
TCMB Güncel Döviz Kurları
mews/tcmb-doviz
TCMB Güncel Döviz Kurları
- Tuesday, July 4, 2017
- by mewebstudio
- Repository
- 0 Watchers
- 1 Stars
- 51 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 3 Versions
- 9 % Grown
TCMB Güncel Döviz Kurları
TCMB webservisini (http://www.tcmb.gov.tr/kurlar/today.xml) kullanarak güncel döviz kurlarını almaya yarar., (*1)
Kurulum
git clone git://github.com/mewebstudio/tcmb-doviz
cd tcmb-doviz
composer install
cd example
php -S localhost:8000
Kullanım
$currency = new \Mews\Tcmb\Currency('http://www.tcmb.gov.tr/kurlar/today.xml');
// Tümünü listeme:
$items = $currency->getItems();
foreach($items as $item) {
echo $item->CurrencyCode . ' / ' . $item->CurrencyName . ': Alış: ' . $item->ForexBuying . ' - Satış: ' . $item->ForexBuying . '<br>';
}
// Bir kurun verisine erişim:
// USD alış:
echo $currency->getItem('USD')->ForexBuying;
// USD satış:
echo $currency->getItem('USD')->ForexSelling;
// Tüm parametrelerin dökümü:
var_dump($currency->getItem('USD'));
Örnek
Örnek kodlar example/index.php dosyasında yer almaktadır., (*2)
Lisans
MIT, (*3)
dev-master
9999999-dev
TCMB Güncel Döviz Kurları
Sources
Download
MIT
The Requires
by
MeWebStudio - Muharrem ERİN
v2.0.0
2.0.0.0
TCMB Güncel Döviz Kurları
Sources
Download
MIT
The Requires
by
MeWebStudio - Muharrem ERİN
v1.0.0
1.0.0.0
TCMB Güncel Döviz Kurları
Sources
Download
MIT
The Requires
by
MeWebStudio - Muharrem ERİN