mjaschen/oauth2-mtbnews

MTB-News.de provider for league/oauth2-client

0.6.0 2017-12-28 12:37 UTC

This package is auto-updated.

Last update: 2024-11-22 06:59:58 UTC


README

This package provides MTB-News.de, Rennrad-News.de, and eMTB-News.de integration for OAuth2 Client by The League.

Requirements

  • PHP 5.4 or later

Installation

composer require mjaschen/oauth2-mtbnews

Usage

MTB-News.de

$provider = new MarcusJaschen\OAuth2\Client\Provider\MTBNews(
    [
        'clientId'     => 'abcdefghijkl',
        'clientSecret' => 'mnopqrstuvwxyz',
        'redirectUri'  => 'https://www.example.org/oauth/return',
    ]
);

Rennrad-News.de

$provider = new MarcusJaschen\OAuth2\Client\Provider\RennradNews(
    [
        'clientId'     => 'abcdefghijkl',
        'clientSecret' => 'mnopqrstuvwxyz',
        'redirectUri'  => 'https://www.example.org/oauth/return',
    ]
);

eMTB-News.de

$provider = new MarcusJaschen\OAuth2\Client\Provider\EMTBNews(
    [
        'clientId'     => 'abcdefghijkl',
        'clientSecret' => 'mnopqrstuvwxyz',
        'redirectUri'  => 'https://www.example.org/oauth/return',
    ]
);