Download the PHP package tetzilla/sportmonks-football-api without Composer

On this page you can find all versions of the php package tetzilla/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 PHP Client

PHP Library for Sportmonks Soccer API v3. Developed by https://github.com/joesaunderson/sportmonks-soccer.

Prerequisites

PHP >= 7.3

Installation

Setup

The API Client relies on Environment variables for configuration (setting API token & timezone).

Prerequisites

PHP >= 7.3

Install:

Usage:

An example .env file:

Usage

Pagination, Filtering, Sorting & Data Enrichment

The Sportmonks API allows for advanced filtering and sorting, as well as adding data via relationships. This client supports the following:

Pagination

Note: The pagination ($response['pagination']) can be used to loop through pages and build a result set.

Includes

Filtering

// API call for Fixtures with filters

Note: This client will not validate the usage for the correct endpoints and will not throw an error. Refer to the Sportmonks docs to see which endpoints support the above parameters.

Full Endpoint Examples

Livescores

Get all - View Sportmonks Docs
Get all inplay - View Sportmonks Docs
Get latest - View Sportmonks Docs

Fixtures

Get all - View Sportmonks Docs

Get by Id - View Sportmonks Docs
Get by multiple ids - View Sportmonks Docs
Get by date - View Sportmonks Docs
Get by date range - View Sportmonks Docs
Get by date range for team - View Sportmonks Docs
Get by head to head - View Sportmonks Docs
Get upcoming by market id - View Sportmonks Docs
Get by search by name - View Sportmonks Docs
Get last updated - View Sportmonks Docs

States

Get all states - View Sportmonks Docs

Get by id - View Sportmonks Docs

Leagues

Get all - View Sportmonks Docs
Get by Id - View Sportmonks Docs
Get by live - View Sportmonks Docs
Get by fixture date - View Sportmonks Docs
Get by country id- View Sportmonks Docs
Get by search by name - View Sportmonks Docs
Get all by team id - View Sportmonks Docs
Get current by team id - View Sportmonks Docs

Seasons

Get all - View Sportmonks Docs
Get by id - View Sportmonks Docs
Get by team id - View Sportmonks Docs
Get by search by name - View Sportmonks Docs

Schedules

Get by season id - View Sportmonks Docs
Get by season id - View Sportmonks Docs
Get by season id and team id - View Sportmonks Docs

Stages

Get all - View Sportmonks Docs
Get by id - View Sportmonks Docs
Get by season id - View Sportmonks Docs
Get by search by name - View Sportmonks Docs

Rounds

Get all - View Sportmonks Docs
Get by id - View Sportmonks Docs
Get by season id - View Sportmonks Docs
Get by search by name - View Sportmonks Docs

Standings

Get all - View Sportmonks Docs
Get by id - View Sportmonks Docs
Get by round id - View Sportmonks Docs
Get corrections by season id - View Sportmonks Docs
Get live standings by league id - View Sportmonks Docs

Topscorers

Get all by season id - View Sportmonks Docs

Get all by stage id - View Sportmonks Docs

Teams

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by country id - View Sportmonks Docs

Get by season id - View Sportmonks Docs

Get by search by name - View Sportmonks Docs

Team Squads

Get by team id - View Sportmonks Docs

Get by team id and season id - View Sportmonks Docs

Players

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by country id - View Sportmonks Docs

Get by search by name - View Sportmonks Docs

Get last updated - View Sportmonks Docs

Coaches

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by country id - View Sportmonks Docs

Get by search by name - View Sportmonks Docs

Get last updated - View Sportmonks Docs

Referees

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by country id - View Sportmonks Docs

Get by season id - View Sportmonks Docs

Get by search by name - View Sportmonks Docs

Transfers

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get latest - View Sportmonks Docs

Get between date range - View Sportmonks Docs

Get by team id - View Sportmonks Docs

Get by player id - View Sportmonks Docs

Venues

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by season id - View Sportmonks Docs

Get by search by name - View Sportmonks Docs

TV Stations

Get all - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by fixture id - View Sportmonks Docs

Predictions

Get predictability - View Sportmonks Docs

Get predictability by league id - View Sportmonks Docs

Get predictability by fixture id - View Sportmonks Docs

Get value bets - View Sportmonks Docs

Pre-match Odds

Get all - View Sportmonks Docs

Get by fixture id - View Sportmonks Docs

Get by fixture id and bookmaker id - View Sportmonks Docs

Get by fixture id and market id - View Sportmonks Docs

Get last updated - View Sportmonks Docs

Inplay Odds

Get all - View Sportmonks Docs

Get by fixture id - View Sportmonks Docs

Get by fixture id and bookmaker id - View Sportmonks Docs

Get by fixture id and market id - View Sportmonks Docs

Get last updated - View Sportmonks Docs

Markets

Get all - View Sportmonks Docs

Get by market id - View Sportmonks Docs

Get by search - View Sportmonks Docs

Bookmakers

Get all - View Sportmonks Docs

Get by bookmaker id - View Sportmonks Docs

Get by search - View Sportmonks Docs

Get by market id - View Sportmonks Docs

News

Get pre-match news - View Sportmonks Docs

Get by season id - View Sportmonks Docs

Get pre-match news for upcoming fixtures - View Sportmonks Docs

Rivals

Get all rivales - View Sportmonks Docs

Get by team id - View Sportmonks Docs

Commentaries

Get all commentaries - View Sportmonks Docs

Get by team id - View Sportmonks Docs

Core Endpoints

Core contains all endpoints that are used in all sports.

Continents 🗺️

Get all continents - View Sportmonks Docs

Get by id - View Sportmonks Docs

Countries

Get all countries - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by search - View Sportmonks Docs

Regions

Get all regions - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by search - View Sportmonks Docs

Cities 🏙️

Get all cities - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by search - View Sportmonks Docs

Types ⌨️

Get all types - View Sportmonks Docs

Get by id - View Sportmonks Docs

Get by Entity - View Sportmonks Docs

Filters ⚙️

Get all entity - View Sportmonks Docs

My Sportmonks

Retrieve information about your subscription.

Get my enrichments - View Sportmonks Docs

Get my resources - View Sportmonks Docs

Get my leagues - View Sportmonks Docs

License

MIT


All versions of sportmonks-football-api with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 | ^8
symfony/http-client Version ^5.4.26
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 tetzilla/sportmonks-football-api contains the following files

Loading the files please wait ....