AangPer / matchy

A Laravel application that uses the sportmonks-soccer API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codacy Badge BCH compliance

Laravel Sportmonks Website

Laravel website that uses Sportmonks (live)score API calls. Documentation for the API can be found here

Installation

1- Require the laravel-sportmonks-soccer-package via Composer.

$ composer require kirill-latish/laravel-sportmonks-soccer

2- Run Composer to install or update the new requirement.

$ composer install

or

$ composer update

3- Publish the configuration file

$ php artisan vendor:publish --provider="Sportmonks\SoccerAPI\SoccerAPIServiceProvider"

4- Review the configuration file and add your token in your .env file: 'api_token' => env('API_TOKEN')

If you don't have a API-token, you can get a free one here This should be enough to experiment with the code.

config/soccerapi.php

5- Review the configuration file and change the 'without_data' => 'false' to true`:

config/soccerapi.php

6- Review the configuration file and add your timezone in your .env file: 'timezone' => config('app.timezone')

config/soccerapi.php

7-- Copy the folder soccerapi/laravel-sportmonks-soccer to vendor/kirill-latish and overwrite the existing folder.

Special thanks to

kirill-latish

About

A Laravel application that uses the sportmonks-soccer API

License:MIT License


Languages

Language:PHP 82.3%Language:HTML 17.6%Language:Vue 0.1%