PHPackages                             niccolomeloni/lara-football-data - 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. niccolomeloni/lara-football-data

ActiveLibrary[API Development](/categories/api)

niccolomeloni/lara-football-data
================================

Use football-data.org API in your Laravel application

0.5.0(8y ago)035MITPHPPHP ^7.2

Since Mar 17Pushed 8y agoCompare

[ Source](https://github.com/niccolomeloni/lara-football-data)[ Packagist](https://packagist.org/packages/niccolomeloni/lara-football-data)[ RSS](/packages/niccolomeloni-lara-football-data/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Lara Football Data
==================

[](#lara-football-data)

[![CircleCI](https://camo.githubusercontent.com/511b58859f37daa651c88f0292e8ad87e7fc8e40c29c42c0858817fc8dabcb20/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667)](https://camo.githubusercontent.com/511b58859f37daa651c88f0292e8ad87e7fc8e40c29c42c0858817fc8dabcb20/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667) [![Packagist](https://camo.githubusercontent.com/78176a1be9ad9e2778631436ad19043f6dae53fdddfa88069e8359468998ae19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667)](https://camo.githubusercontent.com/78176a1be9ad9e2778631436ad19043f6dae53fdddfa88069e8359468998ae19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667) [![license](https://camo.githubusercontent.com/c7207dd6318b6126e4efaae7d0c635a534b1720edcda953e51d9dcaaa989190f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667)](https://camo.githubusercontent.com/c7207dd6318b6126e4efaae7d0c635a534b1720edcda953e51d9dcaaa989190f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6963636f6c6f6d656c6f6e692f6c6172612d666f6f7462616c6c2d646174612e737667)

> A [Football Data](https://www.football-data.org/) API bridge for Laravel

Install via Composer
--------------------

[](#install-via-composer)

Install the `niccolomeloni/lara-football-data` package via Composer by typing following command:

```
$ composer require niccolomeloni/lara-football-data
```

Service Provider and Facades ( Laravel 5.5 or above )
-----------------------------------------------------

[](#service-provider-and-facades--laravel-55-or-above-)

If you are using Laravel &gt;= 5.5 that's all: this package supports Laravel new [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery).

Service Provider and Facades ( Laravel 5.4 or below )
-----------------------------------------------------

[](#service-provider-and-facades--laravel-54-or-below-)

You need to add the service provider to your `config/app.php` providers array:

```
'providers' => [
    /* ... */
    Niccolomeloni\LaraFootballData\ApiFootballDataServiceProvider::class,
]
```

Next, you may want to add the facade to your `config/app.php` aliases array:

```
'aliases' => [
    /* ... */
    'LaraFootballData' => Niccolomeloni\LaraFootballData\Facades\ApiFootballData::class,
]
```

Publish the configuration
-------------------------

[](#publish-the-configuration)

Run the following command to publish the package config file:

```
$ php artisan vendor:publish --provider="Niccolomeloni\LaraFootballData\ApiFootballDataServiceProvider"
```

You should now have a `config/football-data.php` file that allows you to configure the basics of this package.

Examples
--------

[](#examples)

Here you can see an example of how to use this package with `LaraFootballData` facade:

```
LaraFootballData::competitions($season = "");
LaraFootballData::competition($competitionId)->teams();
LaraFootballData::competition($competitionId)->leagueTable($matchday = "");
LaraFootballData::competition($competitionId)->fixtures($timeFrame= "", $matchday = "");
LaraFootballData::fixtures($timeFrame= "", $matchday = "");
LaraFootballData::fixture($fixtureId, $head2head = "");
LaraFootballData::team($teamId)->fixtures($season = "", $timeFrame = "", $venue = "");
LaraFootballData::team($teamId)->players();
LaraFootballData::get('http://api.football-data.org/v1/...');
```

If you prefer to use dependency injection over facades like me, then you can inject the `ApiFootballDataManager`:

```
namespace App\Http\Controllers;

use Niccolomeloni\LaraFootballData\ApiFootballDataManager;

class FooController extends Controller
{
    protected $apiFootballDataManager;

    public function __construct(ApiFootballDataManager $apiFootballDataManager)
    {
        $this->apiFootballDataManager = $apiFootballDataManager;
    }

    public function competitions($season = "")
    {
        $this->apiFootballDataManager->competitions($season);
    }
}
```

Documentation
-------------

[](#documentation)

Check on [football-data.org API documentation](http://www.football-data.org/docs/v1/index.html).

License
-------

[](#license)

Released under the MIT License, see [LICENSE](LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

2975d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f38f65020fa89f879169d49ac7a64ad7da8acc7d5b02651572dea6755d2dd05?d=identicon)[niccolomeloni](/maintainers/niccolomeloni)

---

Top Contributors

[![niccolomeloni](https://avatars.githubusercontent.com/u/18067545?v=4)](https://github.com/niccolomeloni "niccolomeloni (11 commits)")

---

Tags

apilaraveldatafootball

### Embed Badge

![Health badge](/badges/niccolomeloni-lara-football-data/health.svg)

```
[![Health](https://phpackages.com/badges/niccolomeloni-lara-football-data/health.svg)](https://phpackages.com/packages/niccolomeloni-lara-football-data)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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