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 yesterday

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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity26

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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