Download the PHP package fpicosm/sportmonks-football-api without Composer
On this page you can find all versions of the php package fpicosm/sportmonks-football-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fpicosm/sportmonks-football-api
More information about fpicosm/sportmonks-football-api
Files in fpicosm/sportmonks-football-api
Package sportmonks-football-api
Short Description A Laravel/Lumen wrapper for Sportmonks Football Api
License MIT
Informations about the package sportmonks-football-api
Sportmonks Football Api
Installation
Require the package via composer:
Configuration
Update your .env
file adding:
SPORTMONKS_TIMEZONE
is optional. If not included, it is used the APP_TIMEZONE
value.
Using Laravel
-
Register the ServiceProvider in
config/app.php
, inside theproviders
section: - Publish the config file
Using Lumen
-
Create the folder
config
at the root of the project (if not exists). -
Create the file
config/football-api.php
and paste: -
Add the config file in
bootstrap/app.php
, inside theRegister Config Files
section: -
Add the ServiceProvider in
bootstrap/app.php
, inside theRegister Service Providers
section: - Uncomment the line
$app->withFacades();
inbootstrap/app.php
Usage
Where needed, add the dependency:
Then, you can call to:
Select option
To select only specific fields, you can pass an array, or a comma separated string. Examples:
Include option
To include relations, you can pass an array, or a semicolon separated string. Examples:
You can combine both include and select options. Example:
Pagination
To set the page number, use the page
method:
To set the page size, use the perPage
method:
The page size must be between 10
and 150
(default value is 100
).
Endpoints
Bookmakers
Get all bookmakers
Get all premium bookmakers
Get bookmaker by id
Search bookmakers by name
Get bookmakers by fixture id
Get pre-match odds by fixture id and bookmaker id
Get inplay odds by fixture id and bookmaker id
Get premium odds by fixture id and bookmaker id
Cities
Get all cities
Get city by id
Search cities by name
Coaches
Get all coaches
Get coach by id
Get coaches by country id
Search coaches by name
Get last updated coaches
Get coach statistics by season id
Commentaries
Get all commentaries
Get commentaries by fixture id
Continents
Get all continents
Get continent by id
Countries
Get all countries
Get country by id
Search countries by name
Get leagues by country id
Get players by country id
Get teams by country id
Get coaches by country id
Get referees by country id
Enrichments
Get all enrichments
Expected
Get expected by team
Get expected by player
Filters
Get all filters
Fixtures
Get all fixtures
Get fixture by id
Get fixtures by multiple ids
Get fixtures by date
Get fixtures by date range
Get fixtures by date range for team
Get fixtures by head-to-head
Search fixtures by name
Get upcoming fixtures by market id
Get upcoming fixtures by tv-station id
Get past fixtures by tv-station id
Get last updated fixtures
Get tv stations by fixture id
Get predictions by fixture id
Get bookmakers by fixture id
Get commentaries by fixture id
Get value bets by fixture id
Get pre-match odds by fixture id
Get pre-match odds by fixture id and bookmaker id
Get pre-match odds by fixture id and market id
Get inplay odds by fixture id
Get inplay odds by fixture id and bookmaker id
Get inplay odds by fixture id and market id
Get premium odds by fixture id
Get premium odds by fixture id and bookmaker id
Get premium odds by fixture id and market id
Leagues
Get all leagues
Get league by id
Get all live leagues
Get leagues by fixture date
Get leagues by country id
Search leagues by name
Get all leagues by team id
Get current leagues by team id
Get live standings by league id
Get predictions by league id
Livescores
Get inplay livescores
Get all livescores
Get last updated livescores
Markets
Get all markets
Get all premium markets
Get market by id
Search markets by name
Get pre-match odds by fixture id and market id
Get inplay odds by fixture id and market id
Get premium odds by fixture id and market id
News
Get all pre-match news
Get pre-match news by season id
Get pre-match news for upcoming fixtures
Odds Inplay
Get all inplay odds
Get inplay odds by fixture id
Get inplay odds by fixture id and bookmaker id
Get inplay odds by fixture id and market id
Get last updated inplay odds
Odds Pre-match
Get all pre-match odds
Get pre-match odds by fixture id
Get pre-match odds by fixture id and bookmaker id
Get pre-match odds by fixture id and market id
Get last updated pre-match odds
Odds Premium
Get all premium odds
Get premium odds by fixture id
Get premium odds by fixture id and bookmaker id
Get premium odds by fixture id and market id
Get updated premium odds between time ranges
Get historical premium odds between time ranges
Get all historical premium odds
Players
Get all players
Get player by id
Get players by country id
Search players by name
Get last updated players
Get transfers by player id
Get player statistics by season id
Predictions
Get all probabilities
Get predictability by league id
Get probabilities by fixture id
Get all value bets
Get value bets by fixture id
Referees
Get all referees
Get referee by id
Get referees by country id
Search referees by name
Search referees by season id
Get referee statistics by season id
Regions
Get all regions
Get region by id
Search regions by name
Resources
Get all resources
Rivals
Get all rivals
Get rivals by team id
Rounds
Get all rounds
Get round by id
Get rounds by season id
Search rounds by name
Get standings by round id
Get statistics by round id
Schedules
Get schedules by season id
Get schedules by team id
Get schedules by season id and team id
Seasons
Get all seasons
Get season by id
Get seasons by team id
Search seasons by name
Get schedules by season id
Get schedules by season id and team id
Get stages by season id
Get rounds by season id
Get standings by season id
Get standings correction by season id
Get topscorers by season id
Get teams by season id
Get squads by season id and team id
Get venues by season id
Get news by season id
Get referees by season id
Get player statistics by season id
Get team statistics by season id
Get coach statistics by season id
Get referee statistics by season id
Squads
Get current domestic squads by team id
Get all squads by team id based on current seasons
Get squads by team id and season id
Stages
Get all stages
Get stage by id
Get stages by season id
Search stages by name
Get topscorers by stage id
Get statistics by stage id
Standings
Get all standings
Get standings by season id
Get standings correction by season id
Get standings by round id
Get live standings by league id
States
Get all states
Get state by id
Statistics
Get player statistics by season id
Get team statistics by season id
Get coach statistics by season id
Get referee statistics by season id
Get statistics by stage id
Get statistics by round id
Teams
Get all teams
Get team by id
Get teams by country id
Get teams by season id
Search teams by name
Get fixtures by date range for team
Get fixtures by head-to-head for team
Get all leagues by team id
Get current leagues by team id
Get schedules by team id
Get schedules by team id and season id
Get seasons by team id
Get current domestic squads by team id
FootballApi::teams($teamId)->squads();
Get current extended squads by team id
FootballApi::teams($teamId)->extendedSquads();
Get squads by team id and season id
FootballApi::teams($teamId)->squadsBySeason($seasonId);
Get transfers by team id
FootballApi::teams($teamId)->transfers();
Get rivals by team id
FootballApi::teams($teamId)->rivals();
Get team statistics by season id
FootballApi::teams()->statisticsBySeason($seasonId);
Topscorers
Get topscorers by season id
FootballApi::topscorers()->bySeason($seasonId);
Get topscorers by stage id
FootballApi::topscorers()->byStage($stageId);
Transfers
Get all transfers
FootballApi::transfers()->all();
Get transfer by id
FootballApi::transfers()->find($transferId);
Get last transfers
FootballApi::transfers()->latest();
Get transfers between two dates
FootballApi::transfers()->byDateRange($from, $to);
Get transfers by team id
FootballApi::transfers()->byTeam($teamId);
Get transfers by player id
FootballApi::transfers()->byPlayer($playerId);
TvStations
Get all tv stations
FootballApi::tvStations()->all();
Get tv station by id
FootballApi::tvStations()->find($tvStationId);
Get tv stations by fixture id
FootballApi::tvStations()->byFixture($fixtureId);
Get upcoming fixtures by tv-station id
FootballApi::tvStations($tvStationId)->upcomingFixtures();
Get past fixtures by tv-station id
FootballApi::tvStations($tvStationId)->pastFixtures();
Types
Get all types
FootballApi::types()->all();
Get type by id
FootballApi::types()->find($typeId);
Get type by entity
FootballApi::types()->byEntities();
Venues
Get all venues
FootballApi::venues()->all();
Get venue by id
FootballApi::venues()->find($venueId);
Get venues by season id
FootballApi::venues()->bySeason($seasonId);
Search venues by name
FootballApi::venues()->search($name);