mohammad-mazraeshahi/sportmonks-soccer-api

Get data from Sportmonks soccer API

v0.1.1 2018-04-14 18:33 UTC

This package is auto-updated.

Last update: 2024-11-22 04:37:01 UTC


README

API Version support

This API Client supports SportMonks v2.0.

Requirements

  • PHP 7.0 or higher

Installation

composer require mohammad-mazraeshahi/sportmonks-soccer-api

Configuration

In your config/app.php add 'SportMonksAPI\Soccer\SportMonksSoccerApiServiceProvider' to the end of the $providers array

'providers' => [

    Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
    Illuminate\Auth\AuthServiceProvider::class,
    ...
    SportMonksAPI\Soccer\SportMonksSoccerApiServiceProvider::class,

],


'alias' => [
    ...
    'SportMonksSoccerApi' => SportMonksAPI\Soccer\APIFacade::class,
]

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="SportMonksAPI\Soccer\SportMonksSoccerApiServiceProvider"

And add Token in config/sportMonks.php