Laravel package for Sportmonks Football Api(V3)
composer require pyaesoneaung/sportmonks-football-api
.env
SPORTMONKS_FOOTBALL_API_TOKEN=Your-Sportmonks-Api-Token
SPORTMONKS_FOOTBALL_TIMEZONE=Asia/Yangon
📚 Read the full documentation at sportmonks-football-api.pyaesoneaung.dev
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();
And more...
📚 Checkout the full documentation at sportmonks-football-api.pyaesoneaung.dev
Edit Sportmonks api token at tests/Pest.php
composer test