PHP code example of captaintea / laravel-sportmonks-soccer

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

    

captaintea / 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);