PHP code example of pyaesoneaung / sportmonks-football-api

1. Go to this page and download the library: Download pyaesoneaung/sportmonks-football-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/ */

    

pyaesoneaung / sportmonks-football-api example snippets


use SportmonksFootballApi;

SportmonksFootballApi::fixture()->all();

use SportmonksFootballApi;

SportmonksFootballApi::fixture()->byId($id);

use SportmonksFootballApi;

SportmonksFootballApi::fixture()
	->setSelect('name')
	->setInclude('events.type')
	->setFilter('eventTypes:18,14')
	->setPage(2)
	->all();