jpbernius / oauth2-doo
doo OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Installs: 5 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.5.0
- league/oauth2-client: ~2.6
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~2.0
This package is not auto-updated.
Last update: 2024-11-16 14:19:32 UTC
README
This package provides doo OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
composer require jpbernius/oauth2-doo
Usage
Usage is the same as The League's OAuth client, using JPBernius\OAuth2\Client\Provider\DooProvider
as the provider.
Authorization Code Flow
$provider = new JPBernius\OAuth2\Client\Provider\DooProvider([ 'clientId' => 'YOUR_CLIENT_ID', 'clientSecret' => 'YOUR_CLIENT_SECRET' ]); $token = $provider->getAccessToken('client_credentials');