2017 © Pedro Peláez
 

library sportily-laravel

image

sportily/sportily-laravel

  • Tuesday, March 29, 2016
  • by craigsssmith
  • Repository
  • 0 Watchers
  • 0 Stars
  • 80 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Laravel Package for Sportily API

Setup

Install via composer

composer require sportily/sportily-laravel:1.*

Publish configuration files

We've provided skeletal configuration files. Copy these into your application's config directory using:, (*1)

artisan vendor:publish --provider=Sportily\\Laravel\\ServiceProvider

Once that's complete, edit the config in config/sportily.php, providing your callback endpoint and your client id and secret., (*2)

Enable sportily middleware

We've provided middleware to ensure that your client always has a valid access token. You should wrap any routes that make requests to the Sportily API like so:, (*3)

Route::group(['middleware' => 'sportily.token'], function() {
    /* your routes here */
});

Enable profile view composer

This step is optional. We've provided a view composer that populates views with the logged in user's profile information. Enable it by adding the following to your application's AppServiceProvider:, (*4)

View::composer('*', 'Sportily\Laravel\Views\ProfileComposer');

The Versions

29/03 2016

dev-master

9999999-dev

  Sources   Download

The Requires

 

29/03 2016

1.5.0

1.5.0.0

  Sources   Download

The Requires

 

19/06 2015

1.4.0

1.4.0.0

  Sources   Download

The Requires

 

09/06 2015

1.3.0

1.3.0.0

  Sources   Download

The Requires

 

27/05 2015

1.2.0

1.2.0.0

  Sources   Download

The Requires

 

27/05 2015

1.1.0

1.1.0.0

  Sources   Download

The Requires

 

26/05 2015

1.0.0

1.0.0.0

  Sources   Download

The Requires