jpbernius/oauth2-doo

doo OAuth 2.0 Client Provider for The PHP League OAuth2-Client

dev-master 2022-01-18 16:31 UTC

This package is not auto-updated.

Last update: 2024-04-20 11:42:11 UTC


README

Build Status Build Status Scrutinizer Code Quality Code Coverage License Total Downloads

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');