Skip to content

Php ile günlük nöbetçi eczane listesini veren Php sınıfı

License

Notifications You must be signed in to change notification settings

ufukozdemir1990/nobetci-eczane

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nöbetci Eczaneler

Php ile günlük nöbetçi eczane listesini veren Php sınıfı

Eczanelere ait veriler ecza.io sitesinden alınmıştır.

Ecza.io sitesinden çekilen veriler, json olarak tutulabilir. Bu sayede her seferinde Ecza.io sitesinden çekilmeyeceği için performans artışı sağlanabilir.

Çalışma Mantığı

Öncelikle Php Sınıfımızı Sayfaya Dahil Edelim.

require_once("NobetciEczane.class.php");

Daha Sonra Sınıfımızı Başlatalım.

// Hangi İli ve İlçeyi İstiyorsak Parametre Verileri Gönderlim
$eczane = new NobetciEczane("izmir", "bornova");

Daha Sonra Nöbetçi Eczanelerimizi Çekelim.

// Verilerimizi Çekebiliriz.
echo $eczane->getir();

Genel Olarak Tam Kodumuz Şöyle.

header("Content-type:application/jSon");

// Sınıfımızı Sayfamıza Dahil Ettik 
require_once("NobetciEczane.class.php");

// Sınıfı Başlattık 
$eczane = new NobetciEczane("izmir", "bornova");

// Nöbetçi Eczanelerimizi JSON Olarak Çektik 
echo $eczane->getir();

About

Php ile günlük nöbetçi eczane listesini veren Php sınıfı

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages