PHPackages                             fpicosm/sportmonks-football-api - 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. fpicosm/sportmonks-football-api

Abandoned → [fpicosm/sportmonks](/?search=fpicosm%2Fsportmonks)ArchivedProject[API Development](/categories/api)

fpicosm/sportmonks-football-api
===============================

A Laravel/Lumen wrapper for Sportmonks Football Api

2.2.0(1y ago)072MITPHPPHP ^8.2

Since Oct 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fpicosm/sportmonks-football-api)[ Packagist](https://packagist.org/packages/fpicosm/sportmonks-football-api)[ RSS](/packages/fpicosm-sportmonks-football-api/feed)WikiDiscussions main Synced 1mo ago

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

Sportmonks Football Api
=======================

[](#sportmonks-football-api)

Installation
------------

[](#installation)

Require the package via composer:

```
composer require fpicosm/sportmonks-football-api
```

Configuration
-------------

[](#configuration)

Update your `.env` file adding:

```
SPORTMONKS_TOKEN=#YOUR_API_TOKEN#
SPORTMONKS_TIMEZONE=#YOUR_TIMEZONE#

```

`SPORTMONKS_TIMEZONE` is optional. If not included, it is used the `APP_TIMEZONE` value.

### Using Laravel

[](#using-laravel)

1. Register the ServiceProvider in `config/app.php`, inside the `providers` section:

    ```
    Sportmonks\FootballApi\FootballApiServiceProvider::class,
    ```
2. Publish the config file

    ```
    php artisan vendor:publish --provider="Sportmonks\FootballApi\FootballApiServiceProvider"
    ```

### Using Lumen

[](#using-lumen)

1. Create the folder `config` at the root of the project (if not exists).
2. Create the file `config/football-api.php` and paste:

    ```
