• 12-06-2022, 02:10:03
    #1
    Bir web sitesi oluştururken bazı widget’lara yer vermek ziyaretçilerinizin ilgisini çekmenize yardımcı olabilir. Bunlardan bir tanesi de Türkiye Süper Lig Puan Durumu olacaktır. Luna Yazılım olarak hazırladığımız JSON tabanlı Süper Lig Puan Durumu API ücretsiz olarak kullanıma sunulmuştur.

    GitHub'dan yıldızlayan herkese teşekkürler

    Aşağıda Süper Lig Puan Durumu API için örnek kullanım hakkında bilgi verilmiştir.

    https://github.com/emirrtopaloglu/super-lig-api


    API’ı kurmak için aşağıdaki bağlantıyı kullanabilirsiniz.

    https://api.lunayazilim.com/standings.json
    Önizleme:



    Örnek kullanım için aşağıdaki kaynak kodları inceleyin.

    <?php
    $json = "https://api.lunayazilim.com/standings.json";
    $json = file_get_contents($json);
    $json = json_decode($json, true);
    
    echo "<table>";
    echo "<tr>";
    echo "<th>Takım</th>";
    echo "<th>O</th>";
    echo "<th>G</th>";
    echo "<th>B</th>";
    echo "<th>M</th>";
    echo "<th>A</th>";
    echo "<th>Y</th>";
    echo "<th>Av</th>";
    echo "<th>P</th>";
    echo "</tr>";
    
    for ( $i = 0; $i < count($json); $i++ ) {
    echo "<tr>";
    echo "<td>". ($i + 1). '. ' . $json[$i]['team']."</td>";
    echo "<td>". $json[$i]['games']."</td>";
    echo "<td>". $json[$i]['wins']."</td>";
    echo "<td>". $json[$i]['draws']."</td>";
    echo "<td>". $json[$i]['losses']."</td>";
    echo "<td>". $json[$i]['goals_for']."</td>";
    echo "<td>". $json[$i]['goals_against']."</td>";
    echo "<td>". $json[$i]['goal_difference']."</td>";
    echo "<td style='font-weight: bold;'>". $json[$i]['points_per_game']."</td>";
    echo "</tr>";
    }
    echo "</table>";
    ?>
  • 12-06-2022, 02:12:19
    #2
    Teşekkürler
  • 12-06-2022, 02:39:02
    #3
    Bence wordpress eklentide yaz. Proda tema yap. Satılır
  • 12-06-2022, 02:41:55
    #4
    Paylaşım için teşekkürler.
  • 24-04-2025, 23:15:52
    #5
    Hala aktif mi?