PHP code example of football-api / laravel-sdk

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

    

football-api / laravel-sdk example snippets


use FootballApi\Facades\Football;

$live = Football::fixtures(status: 'live');

$page = Football::fixtures(status: 'live');

while ($page !== null) {
    foreach ($page->items as $fixture) {
        // ...
    }

    $page = $page->next();
}
bash
php artisan vendor:publish --tag=football-config