PHP code example of programmatordev / sportmonksfootball-php-api
1. Go to this page and download the library: Download programmatordev/sportmonksfootball-php-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
programmatordev / sportmonksfootball-php-api example snippets
use ProgrammatorDev\SportMonksFootball\SportMonksFootball;
// initialize
$api = new SportMonksFootball('yourapikey');
// get all livescores of the current day
$livescores = $api->livescores()->getAll();
bash
composer