Skip to content

PyaeSoneAungRgn/sportmonks-football-api

Repository files navigation

Sportmonks Football Api

Laravel package for Sportmonks Football Api(V3)

Installation

composer require pyaesoneaung/sportmonks-football-api

.env

SPORTMONKS_FOOTBALL_API_TOKEN=Your-Sportmonks-Api-Token
SPORTMONKS_FOOTBALL_TIMEZONE=Asia/Yangon
SPORTMONKS_FOOTBALL_RETURN_TYPE=dto

Documentation

📚 Read the full documentation at sportmonks-football-api.pyaesoneaung.dev

Basic Usage

Get All Fixtures

use SportmonksFootballApi;

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

Get Fixture by ID

use SportmonksFootballApi;

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

Get All Fixtures With Request Options

use SportmonksFootballApi;

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

And more...

📚 Checkout the full documentation at sportmonks-football-api.pyaesoneaung.dev

Testing

composer test

About

Laravel package for Sportmonks Football Api(V3)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5

Languages