Download the PHP package slvler/livescore-service without Composer
On this page you can find all versions of the php package slvler/livescore-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slvler/livescore-service
More information about slvler/livescore-service
Files in slvler/livescore-service
Package livescore-service
Short Description live score service API for api-football.com
License MIT
Informations about the package livescore-service
Live Score Service
Live Score Client for api-football.com
Welcome to Api-Football! You can use our API to access all API endpoints, which can get information about Football Leagues & Cups.
Installation
To install this package tou can use composer:
Usage
-
First, you should extract the config/livescore.php file to the config folder.
- API key to be obtained from api-football.com address should be declared. This is your private API key, specific to this API.
Basic usage
Example
Available methods
General
Status
Get the list status
Countries
Countries
Get the list of available countries for the leagues endpoint.
The name and code fields can be used in other endpoints as filters.
Leagues
Countries
Get the list of available leagues and cups. This endpoint also returns the coverage of each competition, which makes it possible to know what is available for that league or cup.
Seasons
All seasons are only 4-digit keys, so for a league whose season is 2018-2019 like the English Premier League (EPL), the 2018-2019 season in the API will be 2018.
Teams
Teams Information
Get the list of available teams. The team id are unique in the API and teams keep it among all the leagues/cups in which they participate.
Teams Statistics
The team id are unique in the API and teams keep it among all the leagues/cups in which they participate.
Teams Seasons
Get the list of seasons available for a team.
Teams Countries
Get the list of countries available for the teams endpoint.
Venues
Venues
Get the list of available venues. The venue id are unique in the API.
Standings
Standings
Get the standings for a league or a team. Return a table of one or more rankings according to the league / cup.
Fixtures
Rounds
Get the rounds for a league or a cup. The round can be used in endpoint fixtures as filters
Fixtures
For all requests to fixtures you can add the query parameter timezone to your request in order to retrieve the list of matches in the time zone of your choice like “Europe/London“
Head To Head
Get heads to heads between two teams.
Statistics
Get the statistics for one fixture.
Events
Get the events from a fixture.
Lineups
Get the lineups for a fixture. Lineups are available between 20 and 40 minutes before the fixture when the competition covers this feature. You can check this with the endpoint leagues and the coverage field.
Players statistics
Get the players statistics from one fixture.
Injuries
Injuries
Get the list of players not participating in the fixtures for various reasons such as suspended, injured for example
Predictions
Predictions
Get predictions about a fixture. The predictions are made using several algorithms including the poisson distribution, comparison of team statistics, last matches, players etc…
Coachs
Coachs
Get all the information about the coachs and their careers.
Players
Seasons
Get all available seasons for players statistics.
Players
Get players statistics.
Squads
Return the current squad of a team when the team parameter is used. When the player parameter is used the endpoint returns the set of teams associated with the player.
Top Scorers
Get the 20 best players for a league or cup.
Top Assists
Get the 20 best players assists for a league or cup.
Top Yellow Cards
Get the 20 players with the most yellow cards for a league or cup.
Top Red Cards
Get the 20 players with the most red cards for a league or cup.
Transfers
Transfers
Get all available transfers for players and teams
Trophies
Transfers
Get all available trophies for a player or a coach.
Sidelined
Sidelined
Get all available sidelined for a player or a coach.
Odds
Odds / Live
This endpoint returns in-play odds for fixtures in progress.
Odds / Live / Bets
Get all available bets for in-play odds.
Odds
Get odds from fixtures, leagues or date.
Mapping
Get the list of available fixtures id for the endpoint odds.
Bookmakers
Get all available bookmakers.
Bets
Get all available bets for pre-match odds.
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.