PHP SDK
Official PHP client for sportapi.
Installation
composer require sportapi/sportapi-phpQuick start
<?php
require 'vendor/autoload.php';
use Sportapi\Client;
$client = new Client(getenv('SPORTAPI_KEY'));
$games = $client->nba->scores->live();
foreach ($games as $game) {
echo $game->home->team . " " . $game->home->score . "\n";
}