mohammad-mazraeshahi / sportmonks-soccer-api
Get data from Sportmonks soccer API
v0.1.1
2018-04-14 18:33 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5
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