Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiaanspeck committed Oct 15, 2018
2 parents b43d38b + 09ab8ca commit 95082e3
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ Documentation for the API can be found [here](https://www.sportmonks.com/sports/

## Installation

**1-** Require the laravel-sportmonks-soccer-package via Composer in your `composer.json`.
```json
{
"require": {
"kirill-latish/laravel-sportmonks-soccer": "^2.0"
}
}
**1-** Require the laravel-sportmonks-soccer-package via Composer.
```bash
$ composer require kirill-latish/laravel-sportmonks-soccer
```

**2-** Run Composer to install or update the new requirement.
Expand All @@ -29,35 +25,33 @@ or
$ composer update
```

**3-** Add the service provider to your `app/config/app.php` file
```php
Sportmonks\SoccerAPI\SoccerAPIServiceProvider::class,
```

**4-** Add the facade to your `app/config/app.php` file
```php
'SoccerAPI' => Sportmonks\SoccerAPI\Facades\SoccerAPI::class,
```

**5-** Publish the configuration file
**3-** Publish the configuration file

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

**6-** Review the configuration file and add your token (preferably through env: `'api_token' => env('API_TOKEN')` )
**4-** Review the configuration file and add your token (preferably through env: `'api_token' => env('API_TOKEN')` )

***If you don't have a API-token, you can get a free one [here](https://www.sportmonks.com/register) This should be enough to experiment with the code.***

```
config/soccerapi.php
```

**7-** Review the configuration file and add your timezone (preferably through config file: `'timezone' => config('app.timezone')` )
**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 (preferably through config file: `'timezone' => config('app.timezone')` )

```
config/soccerapi.php
```

**7--** Copy the file `SoccerAPIClient.php` from `soccerapi-source` to `vendor/kirill-latish/laravel-sportmonks-soccer/src-Sportmonks/SoccerAPI` and overwrite the existing `SoccerAPIClient.php`

## Special thanks to
[kirill-latish](https://github.com/kirill-latish/laravel-sportmonks-soccer)

0 comments on commit 95082e3

Please sign in to comment.