PHPackages                             jamesm/api-football - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jamesm/api-football

ActiveLibrary[API Development](/categories/api)

jamesm/api-football
===================

api-football.com API container for laravel(Highly Inspired by grambas/football-data)

04PHP

Since Mar 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/jamesm1987/football-data-api)[ Packagist](https://packagist.org/packages/jamesm/api-football)[ RSS](/packages/jamesm-api-football/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

:api-football.com
=================

[](#api-footballcom)

api-football.com API Container for Laravel (Highly Inspired by grambas/football-data)

Requirements
------------

[](#requirements)

- "guzzlehttp/guzzle": "~7.4.1"

Install
-------

[](#install)

Via Composer

```
$ composer require jamesm/api-football
```

Usage
-----

[](#usage)

More about filters, structure and API: [api-football.com Documentation](https://www.api-football.com/documentation)

Add your api key to env. file

```
APIFOOTBALL_API_KEY=

```

add to config/app.php

```
'providers' => [
  jamesm\APIfootball\APIFootballServiceProvider::class,
]

'aliases' => [
  'Football' =>jamesm\APIfootball\Facades\APIFootballFacade::class,
]

```

Examples
--------

[](#examples)

```
##COMPETITION/LEAGUE

/**
 * List one particular competition.
 *
 * @param integer $leagueID
 * @return Collection
 */
Football::getLeague(int $leagueID)

/**
 * Show Standings for a particular competition

 * @param integer $leagueID
 * @return Collection
 */
Football::getLeagueStandings(int $leagueID)

/**
 * List all matches for a particular competition.
 *
 * @param integer $leagueID
 * @return Collection
 */
Football::getLeagueMatches(int $leagueID)

##FIXTURES/MATCHES

/**
 * List matches across (a set of) competitions.
 *
 * @return Collection
 */
Football::getMatches()

/**
 * Show one particular match.
 *
 * @param integer $matchID
 * @return Collection
 */
Football::getMatch(int $matchID)

##TEAM

/**
 * Show one particular team.
 *
 * @param integer $teamID
 * @return Collection
 */
Football::getTeam(int $teamID)

/**
 * Show all matches for a particular team.
 *
 * @param integer $teamID
 * @return Collection
 */
Football::getMatchesForTeam(int $teamID)

/**
 * List all matches for a particular competition wthdate
 *
 * @param integer $leagueID
 * @param date $date
 * @return Collection
 */
Football::getLeagueMatchesWithDate(int $leagueID,$date)
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/35b71ad170164d6519c60cfaa4d751db198cab4aac4bce39f7cf82c48ff7192a?d=identicon)[jamesm1987](/maintainers/jamesm1987)

### Embed Badge

![Health badge](/badges/jamesm-api-football/health.svg)

```
[![Health](https://phpackages.com/badges/jamesm-api-football/health.svg)](https://phpackages.com/packages/jamesm-api-football)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
