PHP code example of alberto-setim / laravel-sportmonks-soccer

1. Go to this page and download the library: Download alberto-setim/laravel-sportmonks-soccer 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/ */

    

alberto-setim / laravel-sportmonks-soccer example snippets


Sportmonks\SoccerAPI\SoccerAPIServiceProvider::class,

'SoccerAPI' => Sportmonks\SoccerAPI\Facades\SoccerAPI::class,
bash
$ php artisan vendor:publish --provider="Sportmonks\SoccerAPI\SoccerAPIServiceProvider"

config/soccerapi.php

config/soccerapi.php

$response = SoccerAPI::fixtures()->byId($id);