mjaschen / oauth2-mtbnews
MTB-News.de provider for league/oauth2-client
0.6.0
2017-12-28 12:37 UTC
Requires
- php: >=7.0
- league/oauth2-client: ~2.0
Requires (Dev)
- phpunit/phpunit: ~6.0
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', ] );