Download the PHP package forcescripts/live-football-api-php without Composer

On this page you can find all versions of the php package forcescripts/live-football-api-php. 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 live-football-api-php

Live Football API — PHP Client

Official PHP client library for Live Football API — real-time football scores, lineups, standings, head-to-head stats, injuries, referee data, and goal webhooks. Compatible with PHP 7.4 and all newer versions (8.0, 8.1, 8.2, 8.3, 8.4+).

Installation

Install via Composer:

Getting an API key

Sign up for free at live-football-api.com — new accounts get 500 free credits instantly, no card required.

Usage

Examples

The examples/ folder has one runnable file per endpoint — every single one tested against the live API using a real match (Sporting CP vs Galatasaray, UEFA Champions League) and a real player (Victor Osimhen). Clone the repo, run composer install, drop your API key into a file, and run it with php examples/<file>.php.

File Endpoint
examples/matches.php matches()
examples/live_match_details.php liveMatchDetails()
examples/lineups.php lineups()
examples/h2h.php h2h()
examples/injuries.php injuries()
examples/officials.php officials()
examples/leagues.php leagues()
examples/league_standings.php leagueStandings()
examples/league_fixtures.php leagueFixtures()
examples/team_matches.php teamMatches()
examples/team_squad.php teamSquad()
examples/team_standings.php teamStandings()
examples/team_search.php teamSearch()
examples/player.php player()
examples/player_matches.php playerMatches()
examples/player_search.php playerSearch()
examples/webhook_register.php registerWebhook()
examples/webhook_list.php listWebhooks()
examples/webhook_delete.php deleteWebhook()

Output of examples/live_match_details.php:

Available methods

Method Description
matches($date, $lang) Daily fixtures and results
liveMatchDetails($matchId, $lang) Live score, stats, events
lineups($matchId, $lang) Starting lineups and substitutes
h2h($matchId, $lang) Head-to-head history for the two teams in a match
injuries($matchId, $lang) Injury list for both teams in a match
officials($matchId, $lang) Referee and assistants, including average cards
leagues($lang) Full league coverage, grouped by country
leagueStandings($leagueId, $season, $lang) League table
leagueFixtures($leagueId, $season, $week, $lang) Full season fixture list, optionally filtered by season/week
teamMatches($teamId, $season, $lang) A team's matches
teamSquad($teamId, $season, $lang) A team's squad
teamStandings($teamId, $season, $lang) A team's league position
teamSearch($query, $lang) Search teams by name
player($playerId, $lang) Player profile
playerMatches($playerId, $teamId, $season, $lang) A player's match history
playerSearch($query, $lang) Search players by name
registerWebhook($webhookUrl, $label) Register a goal-alert webhook (free)
listWebhooks() List registered webhooks (free)
deleteWebhook($id) Remove a webhook by its numeric id (free)

Full parameter and response reference: live-football-api.com/docs

Requirements

License

MIT © FORCESCRIPTS LTD


All versions of live-football-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-curl Version *
ext-json Version *
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 forcescripts/live-football-api-php contains the following files

Loading the files please wait ...