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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

  1. Register the ServiceProvider in config/app.php, inside the providers section:

  2. Publish the config file

Using Lumen

  1. Create the folder config at the root of the project (if not exists).

  2. Create the file config/football-api.php and paste:

  3. Add the config file in bootstrap/app.php, inside the Register Config Files section:

  4. Add the ServiceProvider in bootstrap/app.php, inside the Register Service Providers section:

  5. Uncomment the line $app->withFacades(); in bootstrap/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);

All versions of sportmonks-football-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fpicosm/sportmonks-football-api contains the following files

Loading the files please wait ....