/matchy

A Laravel application that uses the sportmonks-soccer API

Primary LanguageBladeMIT LicenseMIT

Codacy Badge BCH compliance Build Status

Laravel Sportmonks Website

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

Screenshots

Gallery with screenshots

Installation

1- Run Composer to install requirements.

$ composer install

2- Publish the configuration file

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

3- Make a copy of .env.example and rename to .env

4- Add your API token in the .env file to SPORTMONKS_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.

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

config/soccerapi.php

6- Run php artisan key:generate to overcome the next problem

7- Run php artisan serve to use the application

8- If the application doesn't work as expected, run the following commands. If the problem still exists, open a issue.

php artisan config:clear
php artisan cache:clear
composer dump-autoload
php artisan view:clear
php artisan route:clear

Special thanks to

kirill-latish