This package provides doo OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
To install, use composer:
composer require jpbernius/oauth2-doo
Usage is the same as The League's OAuth client, using JPBernius\OAuth2\Client\Provider\DooProvider
as the provider.
$provider = new JPBernius\OAuth2\Client\Provider\DooProvider([
'clientId' => 'YOUR_CLIENT_ID',
'clientSecret' => 'YOUR_CLIENT_SECRET'
]);
$token = $provider->getAccessToken('client_credentials');